From: Richard Russon Date: Thu, 16 Feb 2017 12:47:02 +0000 (+0000) Subject: fix: resource leak - CID 76966 X-Git-Tag: neomutt-20170225~14^2~18 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0b8bdaa3c20329322c05b10bd88c46f860a2b2be;p=neomutt fix: resource leak - CID 76966 --- diff --git a/pgp.c b/pgp.c index a6bf9170d..ab613631b 100644 --- a/pgp.c +++ b/pgp.c @@ -434,6 +434,7 @@ int pgp_application_pgp_handler (BODY *m, STATE *s) if ((pgpout = safe_fopen (outfile, "w+")) == NULL) { mutt_perror (outfile); + safe_fclose (&tmpfp); return -1; }