Blame SOURCES/mutt-1.10.1-mutt-1.9.3-1_coverity_159_160.patch

d7bd3a
diff -up mutt-1.10.1/pgp.c.mutt-1.9.3-1_coverity_159_160 mutt-1.10.1/pgp.c
d7bd3a
--- mutt-1.10.1/pgp.c.mutt-1.9.3-1_coverity_159_160	2018-11-26 11:25:30.619922166 +0100
d7bd3a
+++ mutt-1.10.1/pgp.c	2018-11-26 11:30:32.452320004 +0100
d7bd3a
@@ -982,6 +982,7 @@ BODY *pgp_decrypt_part (BODY *a, STATE *
d7bd3a
   {
d7bd3a
     mutt_error _("Decryption failed");
d7bd3a
     pgp_void_passphrase ();
d7bd3a
+    safe_fclose (&pgperr);
d7bd3a
     return NULL;
d7bd3a
   }
d7bd3a
 
d7bd3a
@@ -1471,6 +1472,7 @@ BODY *pgp_encrypt_message (BODY *a, char
d7bd3a
 				    fileno (fpout), fileno (pgperr),
d7bd3a
 				    pgpinfile, keylist, sign)) == -1)
d7bd3a
   {
d7bd3a
+    safe_fclose (&fpout);
d7bd3a
     safe_fclose (&pgperr);
d7bd3a
     unlink(pgpinfile);
d7bd3a
     return (NULL);