diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-04-10 16:35:03 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-04-10 16:35:03 +0100 |
commit | 5165d4611244fb22453d20a2aa786eee96a5c714 (patch) | |
tree | fb56c2a4caa8e0da4fc14d7256a73ca55214aa88 /src/plugins/chartable.c | |
parent | 2678c5732684718236a42203e50b4d4ae391c637 (diff) | |
download | rspamd-5165d4611244fb22453d20a2aa786eee96a5c714.tar.gz rspamd-5165d4611244fb22453d20a2aa786eee96a5c714.zip |
[Fix] Plug memory leak in chartable module
Diffstat (limited to 'src/plugins/chartable.c')
-rw-r--r-- | src/plugins/chartable.c | 4 |
1 files changed, 4 insertions, 0 deletions
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); + } } } |