From: Steve Kennedy Date: Mon, 11 Nov 2002 19:50:23 +0000 (+0000) Subject: Fix memory leak in the PGP code. X-Git-Tag: mutt-1-5-2-rel~28 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3080a84610f6f09c8ba84f97b4c86e2940a941dd;p=mutt Fix memory leak in the PGP code. --- diff --git a/pgp.c b/pgp.c index 9ac9665e..4f26ba5f 100644 --- a/pgp.c +++ b/pgp.c @@ -584,16 +584,16 @@ int pgp_verify_one (BODY *sigbdy, STATE *s, const char *tempfile) if (pgp_copy_checksig (pgperr, s->fpout) >= 0) badsig = 0; - safe_fclose (&pgperr); - if ((rv = mutt_wait_filter (thepid))) badsig = -1; dprint (1, (debugfile, "pgp_verify_one: mutt_wait_filter returned %d.\n", rv)); } - + + safe_fclose (&pgperr); + state_attach_puts (_("[-- End of PGP output --]\n\n"), s); - + mutt_unlink (sigfile); mutt_unlink (pgperrfile);