diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-01-17 18:51:41 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-01-17 18:51:41 +0000 |
commit | 7da9a15f9be323beef5dd901ee49140173ef42f7 (patch) | |
tree | 3f44754bb25eb79f5caf155225a9cbca466de768 /src/libutil/expression.c | |
parent | 0c445cda06d5e84d6181c65eb02b9b9953d0729b (diff) | |
download | rspamd-7da9a15f9be323beef5dd901ee49140173ef42f7.tar.gz rspamd-7da9a15f9be323beef5dd901ee49140173ef42f7.zip |
[Fix] Fix memory leak in expression destroying
Diffstat (limited to 'src/libutil/expression.c')
-rw-r--r-- | src/libutil/expression.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libutil/expression.c b/src/libutil/expression.c index e42800608..8562ca36c 100644 --- a/src/libutil/expression.c +++ b/src/libutil/expression.c @@ -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); } } |