diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-01-13 16:55:57 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-01-13 16:55:57 +0000 |
commit | e568f3d33b8122ce27ccbc36ca58024274e89bcf (patch) | |
tree | 50ff66f8fcf4853a3bccca7ba37a1421bc075291 /src/plugins | |
parent | 877fd733aad6ab75ec3e5fa4f6c14c15c103f9c9 (diff) | |
download | rspamd-e568f3d33b8122ce27ccbc36ca58024274e89bcf.tar.gz rspamd-e568f3d33b8122ce27ccbc36ca58024274e89bcf.zip |
[Minor] Fix potential leak in lua send fuzzy command
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/fuzzy_check.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/fuzzy_check.c b/src/plugins/fuzzy_check.c index 955d6fd86..26ad295fa 100644 --- a/src/plugins/fuzzy_check.c +++ b/src/plugins/fuzzy_check.c @@ -2874,6 +2874,8 @@ fuzzy_check_lua_process_learn (struct rspamd_task *task, if (commands != NULL) { res = fuzzy_check_send_lua_learn (rule, task, commands, saved, err); + rspamd_mempool_add_destructor (task->task_pool, + rspamd_ptr_array_free_hard, commands); } if (res) { |