aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-01-17 16:54:33 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-01-17 16:54:33 +0000
commit43566f1597716ebeaac3273dbfe45e9babfff10c (patch)
tree110330737bcd8b227c3c0f43f12c4db465886502 /src/libutil
parent8cd0a991e4fbef885dc3c68ad880b4565b1070ff (diff)
downloadrspamd-43566f1597716ebeaac3273dbfe45e9babfff10c.tar.gz
rspamd-43566f1597716ebeaac3273dbfe45e9babfff10c.zip
[Fix] Plug memory leak in expressions parsing during reload
Diffstat (limited to 'src/libutil')
-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;
}