]> source.dussan.org Git - rspamd.git/commitdiff
Fix double free if multiple classifiers are defined.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 27 May 2015 10:08:41 +0000 (11:08 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 27 May 2015 10:08:41 +0000 (11:08 +0100)
src/libstat/stat_process.c

index e4e4c692bdf7b473aadf6fcd736821f959dedf4d..f13ccc96e39b77d43c22fb21927dfd29b03a67f4 100644 (file)
@@ -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,