From 8bb5b0352f7b992587a18931bd208c13f7eb7728 Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Wed, 20 Oct 2021 23:06:28 +0300 Subject: [PATCH] lib/mu: fix a few leaks Thanks to valgrind --- lib/mu-msg-file.cc | 3 ++- mu/test-mu-cmd.cc | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/mu-msg-file.cc b/lib/mu-msg-file.cc index efa0bba1..2bc57a91 100644 --- a/lib/mu-msg-file.cc +++ b/lib/mu-msg-file.cc @@ -1,5 +1,5 @@ /* -** Copyright (C) 2012-2020 Dirk-Jan C. Binnema +** Copyright (C) 2012-2021 Dirk-Jan C. Binnema ** ** 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); } diff --git a/mu/test-mu-cmd.cc b/mu/test-mu-cmd.cc index 25e647c3..41c66a1f 100644 --- a/mu/test-mu-cmd.cc +++ b/mu/test-mu-cmd.cc @@ -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,