Blame SOURCES/cyrus-imapd-2.4.17-free_body_leak.patch

62c494
diff -up cyrus-imapd-2.4.17/imap/imapd.c.renaud cyrus-imapd-2.4.17/imap/imapd.c
62c494
--- cyrus-imapd-2.4.17/imap/imapd.c.renaud	2017-05-02 16:17:54.000000000 +0200
62c494
+++ cyrus-imapd-2.4.17/imap/imapd.c	2017-05-05 09:00:31.000000000 +0200
62c494
@@ -3446,7 +3446,10 @@ void cmd_append(char *tag, char *name, c
62c494
 				     (const char **) stage[i]->flag,
62c494
 				     stage[i]->nflags, 0);
62c494
 	    }
62c494
-	    if (body) message_free_body(body);
62c494
+	    if (body) {
62c494
+		message_free_body(body);
62c494
+		free(body);
62c494
+	    }
62c494
 	}
62c494
 
62c494
 	if (!r) {
62c494
@@ -9745,6 +9748,7 @@ struct searchargs *s;
62c494
     freestrlist(s->cc);
62c494
     freestrlist(s->bcc);
62c494
     freestrlist(s->subject);
62c494
+    freestrlist(s->messageid);
62c494
     freestrlist(s->body);
62c494
     freestrlist(s->text);
62c494
     freestrlist(s->header_name);