From 43566f1597716ebeaac3273dbfe45e9babfff10c Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 17 Jan 2017 16:54:33 +0000 Subject: [Fix] Plug memory leak in expressions parsing during reload --- src/libutil/expression.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/libutil') 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; } -- cgit v1.2.3