From: Thomas Roessler Date: Wed, 26 Aug 1998 21:12:23 +0000 (+0000) Subject: Another possible memory leak in rfc822_parse_adrlist. The X-Git-Tag: mutt-0-94-5i-rel~23 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=344b71b0b93ff4072800ccac54dac76b0815eab9;p=mutt Another possible memory leak in rfc822_parse_adrlist. The problem and the patch are pretty much the same as with the last fix applied to this file - it's just ',' instaed of ';' this time. --- diff --git a/rfc822.c b/rfc822.c index ce3c126f..70f3a8e5 100644 --- a/rfc822.c +++ b/rfc822.c @@ -340,7 +340,7 @@ ADDRESS *rfc822_parse_adrlist (ADDRESS *top, const char *s) } #ifdef EXACT_ADDRESS - if (last) + if (last && !last->val) last->val = mutt_substrdup (begin, s); #endif commentlen = 0;