]> source.dussan.org Git - rspamd.git/commitdiff
[CritFix] Fix memory leak in fuzzy check
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 7 May 2017 13:20:29 +0000 (14:20 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 7 May 2017 13:20:29 +0000 (14:20 +0100)
src/plugins/fuzzy_check.c

index 2240ac53bc5d7a6c041b7becf2ed6ab33a6a2383..dbf88e54f95a425a06792849ace0af6fe3a82626 100644 (file)
@@ -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;
        }