Skip to content

Commit

Permalink
lib/mu: fix a few leaks
Browse files Browse the repository at this point in the history
Thanks to valgrind
  • Loading branch information
djcb committed Oct 23, 2021
1 parent a4dd58e commit 8bb5b03
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lib/mu-msg-file.cc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
** Copyright (C) 2012-2020 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
** Copyright (C) 2012-2021 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
**
** This program is free software; you can redistribute it and/or modify it
** under the terms of the GNU General Public License as published by the
Expand Down Expand Up @@ -73,6 +73,7 @@ Mu::mu_msg_file_destroy (MuMsgFile *self)

g_free(self->_path);
g_free(self->_maildir);
g_free(self->_sha1);

g_free (self);
}
Expand Down
2 changes: 0 additions & 2 deletions mu/test-mu-cmd.cc
Original file line number Diff line number Diff line change
Expand Up @@ -495,8 +495,6 @@ test_mu_extract_overwrite (void)
if (g_test_verbose ())
g_print ("$ %s\n", cmdline);

return; // XXX fix tests

/* now, it should fail, because we don't allow overwrites
* without --overwrite */
g_assert (g_spawn_command_line_sync (cmdline, &output, &erroutput,
Expand Down

0 comments on commit 8bb5b03

Please sign in to comment.