summaryrefslogtreecommitdiffstats
path: root/src/libutil/expression.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-01-17 18:51:41 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-01-17 18:51:41 +0000
commit7da9a15f9be323beef5dd901ee49140173ef42f7 (patch)
tree3f44754bb25eb79f5caf155225a9cbca466de768 /src/libutil/expression.c
parent0c445cda06d5e84d6181c65eb02b9b9953d0729b (diff)
downloadrspamd-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.c1
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);
}
}