From 5165d4611244fb22453d20a2aa786eee96a5c714 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 10 Apr 2017 16:35:03 +0100 Subject: [PATCH] [Fix] Plug memory leak in chartable module --- src/plugins/chartable.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/plugins/chartable.c b/src/plugins/chartable.c index aed8ee804..1c50f5194 100644 --- a/src/plugins/chartable.c +++ b/src/plugins/chartable.c @@ -437,6 +437,10 @@ chartable_symbol_callback (struct rspamd_task *task, void *unused) } } + + if (words) { + g_array_free (words, TRUE); + } } } -- 2.39.5