summaryrefslogtreecommitdiffstats
path: root/rfc822.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1999-02-28 08:29:59 +0000
committerThomas Roessler <roessler@does-not-exist.org>1999-02-28 08:29:59 +0000
commit5cf91358f390c1b71ca88f09f4c6271af5674997 (patch)
treecba1f6e6cec9c17db8cbbd094bad6556d1255dec /rfc822.c
parentec42e01f8fe4623178a747c551dcfb3ebc5d397c (diff)
Fix a memory leak. From Liviu.
Diffstat (limited to 'rfc822.c')
-rw-r--r--rfc822.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/rfc822.c b/rfc822.c
index ad824dc3..a0d41507 100644
--- 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;