From: Ralph Corderoy Date: Mon, 11 Sep 2017 23:07:50 +0000 (+0100) Subject: mhfixmsg.c: Fix memory leak of temporary filename if write fails. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/b00e8aa68131f51b6f49e1d632e192cf43b3334c?ds=inline mhfixmsg.c: Fix memory leak of temporary filename if write fails. --- diff --git a/uip/mhfixmsg.c b/uip/mhfixmsg.c index 6a7a048e..2bbb0453 100644 --- a/uip/mhfixmsg.c +++ b/uip/mhfixmsg.c @@ -2292,6 +2292,7 @@ strip_crs (CT ct, int *message_mods) { inform("unable to write temporary file %s, continuing...", stripped_content_file); (void) m_unlink (stripped_content_file); + free(stripped_content_file); status = NOTOK; } else { /* Replace the decoded file with the converted one. */