From efb52618131c2c895802dc60433974085963c8a3 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 27 May 2015 11:08:41 +0100 Subject: [PATCH] Fix double free if multiple classifiers are defined. --- src/libstat/stat_process.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libstat/stat_process.c b/src/libstat/stat_process.c index e4e4c692b..f13ccc96e 100644 --- a/src/libstat/stat_process.c +++ b/src/libstat/stat_process.c @@ -168,6 +168,7 @@ rspamd_stat_preprocess (struct rspamd_stat_ctx *st_ctx, while (cur) { clcf = (struct rspamd_classifier_config *)cur->data; + st_list = NULL; if (clcf->pre_callbacks != NULL) { st_list = rspamd_lua_call_cls_pre_callbacks (clcf, task, FALSE, -- 2.39.5