]> granicus.if.org Git - neomutt/commitdiff
fix: resource leak - CID 76968
authorRichard Russon <rich@flatcap.org>
Thu, 16 Feb 2017 12:47:15 +0000 (12:47 +0000)
committerRichard Russon <rich@flatcap.org>
Mon, 20 Feb 2017 16:31:02 +0000 (16:31 +0000)
pgp.c

diff --git a/pgp.c b/pgp.c
index a88bf9ffa4521725abbc883b1acb5f256fdd61c8..b2ff4dc50df090db37255ea8fa8ef385e4361432 100644 (file)
--- 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);