From 4458d00f408a1369edaad97efa89fc99ece9c770 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 14 Dec 2016 13:41:39 +0000 Subject: [Minor] Do not free string explicitly to allow new parser to work --- src/libserver/task.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/libserver') diff --git a/src/libserver/task.c b/src/libserver/task.c index 5ef1fedb6..bcf66aee8 100644 --- a/src/libserver/task.c +++ b/src/libserver/task.c @@ -199,10 +199,9 @@ rspamd_task_free (struct rspamd_task *task) for (i = 0; i < task->parts->len; i ++) { p = g_ptr_array_index (task->parts, i); - g_byte_array_free (p->content, TRUE); - if (p->raw_headers_str) { - g_free (p->raw_headers_str); + if (p->content) { + g_byte_array_free (p->content, TRUE); } if (p->raw_headers) { -- cgit v1.2.3