From: Vsevolod Stakhov Date: Mon, 10 Apr 2017 15:35:03 +0000 (+0100) Subject: [Fix] Plug memory leak in chartable module X-Git-Tag: 1.5.6~33 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5165d4611244fb22453d20a2aa786eee96a5c714;p=rspamd.git [Fix] Plug memory leak in chartable module --- 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); + } } }