]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix memory leak in expression destroying
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 17 Jan 2017 18:51:41 +0000 (18:51 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 17 Jan 2017 18:51:41 +0000 (18:51 +0000)
src/libutil/expression.c

index e42800608ffbd37cd526b25a488114533cc8b327..8562ca36c4d31b2ef67cacfe740453653027c695 100644 (file)
@@ -357,6 +357,7 @@ rspamd_expression_destroy (struct rspamd_expression *expr)
                g_array_free (expr->expressions, TRUE);
                g_ptr_array_free (expr->expression_stack, TRUE);
                g_node_destroy (expr->ast);
+               g_slice_free1 (sizeof (*expr), expr);
        }
 }