aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-05-27 11:08:41 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-05-27 11:08:41 +0100
commitefb52618131c2c895802dc60433974085963c8a3 (patch)
tree91f097db8af8d251487e265ff448732d6ff83561
parente57e401c728e565c15c239e54b2ad36b3c01c62c (diff)
downloadrspamd-efb52618131c2c895802dc60433974085963c8a3.tar.gz
rspamd-efb52618131c2c895802dc60433974085963c8a3.zip
Fix double free if multiple classifiers are defined.
-rw-r--r--src/libstat/stat_process.c1
1 files changed, 1 insertions, 0 deletions
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,