bogofilter/0005-Fix-mime-cleanup-memory-leak-119.patch
2019-02-13 09:13:03 +01:00

27 lines
641 B
Diff

From 9b9f5113d9fa4292f769f416d824e42a40a57c6f Mon Sep 17 00:00:00 2001
From: Georg Sauthoff <mail@georg.so>
Date: Fri, 8 Feb 2019 10:52:08 +0100
Subject: [PATCH 05/11] Fix mime cleanup memory leak (#119)
cf. https://sourceforge.net/p/bogofilter/bugs/119/
---
src/mime.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mime.c b/src/mime.c
index 8edaebf..8964b1a 100644
--- a/src/mime.c
+++ b/src/mime.c
@@ -204,7 +204,7 @@ void mime_cleanup()
if (msg_state == NULL)
return;
- while (mime_stack_top->parent)
+ while (msg_state->parent)
mime_pop();
mime_pop();
msg_state = NULL;
--
2.20.1