]> granicus.if.org Git - neomutt/commitdiff
Free pgpkeylist if the send fails
authorKevin McCarthy <kevin@8t8.us>
Tue, 25 Dec 2018 00:22:07 +0000 (16:22 -0800)
committerRichard Russon <rich@flatcap.org>
Mon, 7 Jan 2019 15:09:41 +0000 (15:09 +0000)
Co-authored-by: Richard Russon <rich@flatcap.org>
send.c

diff --git a/send.c b/send.c
index 026ad138d1a51e467f83506da164aa2b2e3121f1..1d0a3ea1c9b78031f4a5409d86e41fceb6346ab5 100644 (file)
--- 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);