From: Richard Russon Date: Thu, 16 Feb 2017 12:45:23 +0000 (+0000) Subject: fix: resource leak - CID 76980 X-Git-Tag: neomutt-20170225~14^2~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2c37d99eb5d2f5c7b17023d9bd21edf79797c24b;p=neomutt fix: resource leak - CID 76980 --- diff --git a/init.c b/init.c index 2b0b38402..6edff68f2 100644 --- a/init.c +++ b/init.c @@ -1282,13 +1282,14 @@ static int parse_unattach_list (BUFFER *buf, BUFFER *s, LIST **ldata, BUFFER *er { ATTACH_MATCH *a; LIST *lp, *lastp, *newlp; - char *tmp; + char *tmp = NULL; int major; char *minor; do { mutt_extract_token (buf, s, 0); + FREE(&tmp); if (!ascii_strcasecmp(buf->data, "any")) tmp = safe_strdup("*/.*");