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/libmime/message.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/libmime') diff --git a/src/libmime/message.c b/src/libmime/message.c index e8b8f0bab..b259fdb0c 100644 --- a/src/libmime/message.c +++ b/src/libmime/message.c @@ -914,6 +914,7 @@ mime_foreach_callback (GMimeObject * part, gpointer user_data) rspamd_mime_headers_process (task, mime_part->raw_headers, hdrs, strlen (hdrs), FALSE); mime_part->raw_headers_str = hdrs; + rspamd_mempool_add_destructor (task->task_pool, g_free, hdrs); } mime_part->type = type; @@ -983,6 +984,7 @@ mime_foreach_callback (GMimeObject * part, gpointer user_data) rspamd_mime_headers_process (task, mime_part->raw_headers, hdrs, strlen (hdrs), FALSE); mime_part->raw_headers_str = hdrs; + rspamd_mempool_add_destructor (task->task_pool, g_free, hdrs); } mime_part->type = type; -- cgit v1.2.3