From: Richard Russon Date: Thu, 16 Feb 2017 12:47:15 +0000 (+0000) Subject: fix: resource leak - CID 76968 X-Git-Tag: neomutt-20170225~14^2~16 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9f526940302cf5f60958c95bf9c67ef24d72ab6d;p=neomutt fix: resource leak - CID 76968 --- diff --git a/pgp.c b/pgp.c index a88bf9ffa..b2ff4dc50 100644 --- a/pgp.c +++ b/pgp.c @@ -1443,6 +1443,7 @@ BODY *pgp_encrypt_message (BODY *a, char *keylist, int sign) fileno (fpout), fileno (pgperr), pgpinfile, keylist, sign)) == -1) { + safe_fclose (&fpout); safe_fclose (&pgperr); unlink(pgpinfile); return (NULL);