]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Fix memory leak if mime cannot be parsed.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 2 Jun 2015 15:42:48 +0000 (16:42 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 2 Jun 2015 15:42:48 +0000 (16:42 +0100)
src/libmime/message.c

index 0b2f6c08a2c73e512e8206c987e3996c52c939f2..2df39f37222cd40476744e496dbd2949d56cd2aa 100644 (file)
@@ -1587,6 +1587,7 @@ process_message (struct rspamd_task *task)
 
                if (message == NULL) {
                        msg_warn ("cannot construct mime from stream");
+                       g_object_unref (parser);
                        return -1;
                }