]> granicus.if.org Git - neomutt/commitdiff
fix: resource leak - CID 76986
authorRichard Russon <rich@flatcap.org>
Thu, 16 Feb 2017 12:40:37 +0000 (12:40 +0000)
committerRichard Russon <rich@flatcap.org>
Mon, 20 Feb 2017 16:31:03 +0000 (16:31 +0000)
sendlib.c

index 8c297051af5c28b29ea8758043b4dc54157b157e..5c66e789be789e1363b0f8e422feb7e10bf44345 100644 (file)
--- a/sendlib.c
+++ b/sendlib.c
@@ -1851,6 +1851,7 @@ static int write_one_header (FILE *fp, int pfxw, int max, int wraplen,
     if (fold_one_header (fp, tagbuf, valbuf, pfx, wraplen, flags) < 0)
     {
       FREE (&valbuf);
+      FREE (&tagbuf);
       return -1;
     }
     FREE (&tagbuf);