diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-07-16 16:21:34 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-07-16 16:21:34 +0100 |
commit | 4662d55e7d0245df6b347387af43d4faf01aae39 (patch) | |
tree | fbabd41bbfa2392539133c080f67f3f90b46dba3 /src/libmime | |
parent | 8a9cf09b55619b7c46f1d6e3cc742cf10973bd60 (diff) | |
download | rspamd-4662d55e7d0245df6b347387af43d4faf01aae39.tar.gz rspamd-4662d55e7d0245df6b347387af43d4faf01aae39.zip |
[Minor] Plug some new leaks
Diffstat (limited to 'src/libmime')
-rw-r--r-- | src/libmime/message.c | 5 |
1 files changed, 2 insertions, 3 deletions
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; |