diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-05-07 14:20:29 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-05-07 14:20:29 +0100 |
commit | 67e0b6631eff42cff194768a1d15d4eff92e179e (patch) | |
tree | d35f088dd6a4a60090043612a73dc2c138ebca9a | |
parent | 103ea0a9b96fe899eb01cefe2bbdff01f86e23f6 (diff) | |
download | rspamd-67e0b6631eff42cff194768a1d15d4eff92e179e.tar.gz rspamd-67e0b6631eff42cff194768a1d15d4eff92e179e.zip |
[CritFix] Fix memory leak in fuzzy check
-rw-r--r-- | src/plugins/fuzzy_check.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/fuzzy_check.c b/src/plugins/fuzzy_check.c index 2240ac53b..dbf88e54f 100644 --- a/src/plugins/fuzzy_check.c +++ b/src/plugins/fuzzy_check.c @@ -2396,7 +2396,8 @@ fuzzy_generate_commands (struct rspamd_task *task, struct fuzzy_rule *rule, #endif end: if (res->len == 0) { - g_ptr_array_free (res, FALSE); + g_ptr_array_free (res, TRUE); + return NULL; } |