]> granicus.if.org Git - neomutt/commitdiff
Fix a few memory leaks for idna conversion
authorKevin McCarthy <kevin@8t8.us>
Tue, 6 Nov 2018 19:02:01 +0000 (11:02 -0800)
committerRichard Russon <rich@flatcap.org>
Mon, 26 Nov 2018 18:27:21 +0000 (18:27 +0000)
alias.c
sendlib.c

diff --git a/alias.c b/alias.c
index 95886739a41846e0196f93b0cf8da6d338bae5f3..0fd8639f28d89e29d06ea93983fd3a2279010a1b 100644 (file)
--- a/alias.c
+++ b/alias.c
@@ -439,6 +439,7 @@ retry_name:
     if (mutt_addrlist_to_intl(new->addr, &err))
     {
       mutt_error(_("Bad IDN: '%s'"), err);
+      FREE(&err);
       continue;
     }
   } while (!new->addr);
index d22ad1ef29fbf1e258fbac12303279e61b1f4d96..33cb2a58eaa198ede1405b01db17a44d2e57a407 100644 (file)
--- a/sendlib.c
+++ b/sendlib.c
@@ -3055,6 +3055,7 @@ int mutt_bounce_message(FILE *fp, struct Email *e, struct Address *to)
   if (mutt_addrlist_to_intl(from, &err))
   {
     mutt_error(_("Bad IDN %s while preparing resent-from"), err);
+    FREE(&err);
     mutt_addr_free(&from);
     return -1;
   }