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

index 0f082bd4dc25fbf3afcaf4cb44ac7b6a137fefe1..ad3cd30b55d8a853dddd2adfa43ee0d012731812 100644 (file)
--- a/sendlib.c
+++ b/sendlib.c
@@ -2871,6 +2871,7 @@ int mutt_write_fcc (const char *path, HEADER *hdr, const char *msgid,
     onm_flags |= MUTT_SET_DRAFT;
   if ((msg = mx_open_new_message (&f, hdr, onm_flags)) == NULL)
   {
+    safe_fclose(&tempfp);
     mx_close_mailbox (&f, NULL);
     return (-1);
   }