aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstat/stat_process.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-03-09 16:59:54 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-03-09 16:59:54 +0000
commitf514841c75aae5c8dfc3a8e4fba409a70424517f (patch)
tree1f19bb071125045573bf716886f164aa95c2fd4e /src/libstat/stat_process.c
parentd623ed249bfd924bbf08df446f4542d7b30218ce (diff)
downloadrspamd-f514841c75aae5c8dfc3a8e4fba409a70424517f.tar.gz
rspamd-f514841c75aae5c8dfc3a8e4fba409a70424517f.zip
[Fix] Stat_redis_backend: Fix memory leak and simplify learn path
Diffstat (limited to 'src/libstat/stat_process.c')
-rw-r--r--src/libstat/stat_process.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstat/stat_process.c b/src/libstat/stat_process.c
index 6bd17f38f..fc42cd875 100644
--- a/src/libstat/stat_process.c
+++ b/src/libstat/stat_process.c
@@ -818,6 +818,8 @@ rspamd_stat_learn (struct rspamd_task *task,
if (stage == RSPAMD_TASK_STAGE_LEARN_PRE) {
/* Process classifiers */
+ rspamd_stat_preprocess (st_ctx, task, TRUE);
+
if (!rspamd_stat_cache_check (st_ctx, task, classifier, spam, err)) {
return RSPAMD_STAT_PROCESS_ERROR;
}