From: Kevin McCarthy Date: Tue, 25 Dec 2018 00:22:07 +0000 (-0800) Subject: Free pgpkeylist if the send fails X-Git-Tag: 2019-10-25~396^2~16 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=389507628288abc001ca78cf7b4f351338d2d43f;p=neomutt Free pgpkeylist if the send fails Co-authored-by: Richard Russon --- diff --git a/send.c b/send.c index 026ad138d..1d0a3ea1c 100644 --- a/send.c +++ b/send.c @@ -2445,6 +2445,7 @@ int ci_send_message(int flags, struct Email *msg, const char *tempfile, msg->content = mutt_remove_multipart(msg->content); } + FREE(&pgpkeylist); mutt_env_free(&msg->content->mime_headers); /* protected headers */ msg->content = mutt_remove_multipart(msg->content); decode_descriptions(msg->content);