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