lib/mu: fix a few leaks

Thanks to valgrind
This commit is contained in:
Dirk-Jan C. Binnema 2021-10-20 23:06:28 +03:00
parent a4dd58ebdb
commit 8bb5b0352f
2 changed files with 2 additions and 3 deletions

View File

@ -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
@ -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);
}

View File

@ -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,