summaryrefslogtreecommitdiffstats
path: root/0005-Fix-mime-cleanup-memory-leak-119.patch
blob: ca2227a240e9195d86182f28b19631fbccd73f49 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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