]> granicus.if.org Git - mutt/commitdiff
Fix a memory leak. From Liviu.
authorThomas Roessler <roessler@does-not-exist.org>
Sun, 28 Feb 1999 08:29:59 +0000 (08:29 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Sun, 28 Feb 1999 08:29:59 +0000 (08:29 +0000)
rfc822.c

index ad824dc301580829c9818f2632c8ccaa30ade0fb..a0d415070f7cac19175f6d1d71402059e28a390e 100644 (file)
--- a/rfc822.c
+++ b/rfc822.c
@@ -301,7 +301,10 @@ add_addrspec (ADDRESS **top, ADDRESS **last, const char *phrase,
   ADDRESS *cur = rfc822_new_address ();
   
   if (parse_addr_spec (phrase, comment, commentlen, commentmax, cur) == NULL)
+  {
+    rfc822_free_address (&cur);
     return;
+  }
 
   if (*last)
     (*last)->next = cur;