From: Vsevolod Stakhov Date: Wed, 27 May 2015 10:08:41 +0000 (+0100) Subject: Fix double free if multiple classifiers are defined. X-Git-Tag: 0.9.5~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=efb52618131c2c895802dc60433974085963c8a3;p=rspamd.git Fix double free if multiple classifiers are defined. --- 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,