]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Plug some new leaks
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 16 Jul 2019 15:21:34 +0000 (16:21 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 16 Jul 2019 15:21:34 +0000 (16:21 +0100)
src/libmime/message.c

index f99efd8721b868c0d12a8061470555e94b58b6d6..d0c572ac2fe7648964b176591a30c0f3dd085565 100644 (file)
@@ -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;