From b00e8aa68131f51b6f49e1d632e192cf43b3334c Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Tue, 12 Sep 2017 00:07:50 +0100 Subject: [PATCH] mhfixmsg.c: Fix memory leak of temporary filename if write fails. --- uip/mhfixmsg.c | 1 + 1 file changed, 1 insertion(+) 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. */ -- 2.56.0