commit c558398: [Minor] Oops, avoid double free

Vsevolod Stakhov vsevolod at highsecure.ru
Tue Jul 16 15:35:05 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-07-16 16:33:10 +0100
URL: https://github.com/rspamd/rspamd/commit/c558398b7bfb8d5ceb1d4148130f8b39d438833d (HEAD -> master)

[Minor] Oops, avoid double free

---
 src/libmime/message.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/libmime/message.c b/src/libmime/message.c
index d0c572ac2..75e403e70 100644
--- a/src/libmime/message.c
+++ b/src/libmime/message.c
@@ -1127,9 +1127,6 @@ rspamd_message_dtor (struct rspamd_message *msg)
 	g_ptr_array_unref (msg->text_parts);
 	g_ptr_array_unref (msg->parts);
 
-	g_ptr_array_unref (msg->from_mime);
-	g_ptr_array_unref (msg->rcpt_mime);
-
 	g_hash_table_unref (msg->urls);
 	g_hash_table_unref (msg->emails);
 }


More information about the Commits mailing list