aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/expression.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libutil/expression.c')
-rw-r--r--src/libutil/expression.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libutil/expression.c b/src/libutil/expression.c
index 618adad49..e42800608 100644
--- a/src/libutil/expression.c
+++ b/src/libutil/expression.c
@@ -856,6 +856,9 @@ rspamd_parse_expression (const gchar *line, gsize len,
return TRUE;
err:
+ g_ptr_array_free (operand_stack, TRUE);
+ rspamd_expression_destroy (e);
+
return FALSE;
}