]> granicus.if.org Git - neomutt/commitdiff
fix: resource leak - CID 76966
authorRichard Russon <rich@flatcap.org>
Thu, 16 Feb 2017 12:47:02 +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 a6bf9170d2c049d6668ec299f9b964f6210c2ea2..ab613631b027da36a92f662e1b19a5995a14007e 100644 (file)
--- 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;
        }