From: Richard Russon Date: Thu, 16 Feb 2017 12:40:50 +0000 (+0000) Subject: fix: resource leak - CID 76975 X-Git-Tag: neomutt-20170225~14^2~14 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5f9e7f99a1e5f098b9b754931fc9a5a20e418eef;p=neomutt fix: resource leak - CID 76975 --- diff --git a/sendlib.c b/sendlib.c index 0f082bd4d..ad3cd30b5 100644 --- 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); }