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: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5165d4611244fb22453d20a2aa786eee96a5c714;p=thirdparty%2Frspamd.git [Fix] Plug memory leak in chartable module --- diff --git a/src/plugins/chartable.c b/src/plugins/chartable.c index aed8ee8047..1c50f51944 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); + } } }