From 6818c7df6cb98269e073bd1b18cd77ebc28d28a3 Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Sun, 19 Jan 2020 17:22:43 +0200 Subject: [PATCH] mu-msg: plug some leaks --- lib/mu-msg-file.c | 2 ++ lib/mu-msg.c | 1 + 2 files changed, 3 insertions(+) diff --git a/lib/mu-msg-file.c b/lib/mu-msg-file.c index bdd9d2e5..f0fa3061 100644 --- a/lib/mu-msg-file.c +++ b/lib/mu-msg-file.c @@ -247,6 +247,8 @@ get_mailing_list (MuMsgFile *self) else res = g_strdup (dechdr); + g_free (dechdr); + return res; } diff --git a/lib/mu-msg.c b/lib/mu-msg.c index d8b47f70..e478e2d9 100644 --- a/lib/mu-msg.c +++ b/lib/mu-msg.c @@ -917,6 +917,7 @@ mu_msg_move_to_maildir (MuMsg *self, const char *maildir, /* and create a new one */ self->_file = mu_msg_file_new (newfullpath, maildir, err); g_free (targetmdir); + g_free (newfullpath); return self->_file ? TRUE : FALSE; }