From: Vsevolod Stakhov Date: Tue, 16 Jul 2019 15:21:34 +0000 (+0100) Subject: [Minor] Plug some new leaks X-Git-Tag: 2.0~574 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4662d55e7d0245df6b347387af43d4faf01aae39;p=rspamd.git [Minor] Plug some new leaks --- diff --git a/src/libmime/message.c b/src/libmime/message.c index f99efd872..d0c572ac2 100644 --- a/src/libmime/message.c +++ b/src/libmime/message.c @@ -1122,6 +1122,8 @@ rspamd_message_dtor (struct rspamd_message *msg) } } + rspamd_message_headers_destroy (msg->raw_headers); + g_ptr_array_unref (msg->text_parts); g_ptr_array_unref (msg->parts); @@ -1147,9 +1149,6 @@ rspamd_message_new (struct rspamd_task *task) msg->parts = g_ptr_array_sized_new (4); msg->text_parts = g_ptr_array_sized_new (2); - msg->from_mime = g_ptr_array_sized_new (1); - msg->rcpt_mime = g_ptr_array_sized_new (1); - REF_INIT_RETAIN (msg, rspamd_message_dtor); return msg;