From e0f5687ada6ae224589ec31fa4dd7b4a83edb701 Mon Sep 17 00:00:00 2001 From: Thomas Glanzmann Date: Mon, 30 Aug 2004 20:03:35 +0000 Subject: [PATCH] Fix a memory leak in the generic spam detection code. --- init.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/init.c b/init.c index c07df0e1a..2a66a2962 100644 --- a/init.c +++ b/init.c @@ -639,8 +639,11 @@ static int parse_spam_list (BUFFER *buf, BUFFER *s, unsigned long data, BUFFER * mutt_extract_token (&templ, s, 0); /* Add to the spam list. */ - if (add_to_spam_list (&SpamList, buf->data, templ.data, err) != 0) + if (add_to_spam_list (&SpamList, buf->data, templ.data, err) != 0) { + FREE(&templ.data); return -1; + } + FREE(&templ.data); } /* If not, try to remove from the nospam list. */ -- 2.40.0