diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 1999-02-28 08:29:59 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 1999-02-28 08:29:59 +0000 |
commit | 5cf91358f390c1b71ca88f09f4c6271af5674997 (patch) | |
tree | cba1f6e6cec9c17db8cbbd094bad6556d1255dec /rfc822.c | |
parent | ec42e01f8fe4623178a747c551dcfb3ebc5d397c (diff) |
Fix a memory leak. From Liviu.
Diffstat (limited to 'rfc822.c')
-rw-r--r-- | rfc822.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; |