From: Richard Russon Date: Thu, 16 Feb 2017 12:33:50 +0000 (+0000) Subject: fix: resource leak - CID 76965 X-Git-Tag: neomutt-20170225~14^2~19 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e67159a9dca20b90f68aa53514a0deeb7367e5c2;p=neomutt fix: resource leak - CID 76965 --- diff --git a/recvcmd.c b/recvcmd.c index 38abc6c28..74d01632e 100644 --- a/recvcmd.c +++ b/recvcmd.c @@ -439,6 +439,7 @@ static void attach_forward_bodies (FILE * fp, HEADER * hdr, if ((tmpfp = safe_fopen (tmpbody, "w")) == NULL) { mutt_error (_("Can't open temporary file %s."), tmpbody); + mutt_free_header (&tmphdr); return; }