From 25aef828771a95f0c968acd33266019019716a41 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Tue, 20 Oct 2009 12:48:14 -0700 Subject: [PATCH] message.c: Free leaked memory in notmuch_message object We were careful to free this memory when we finished parsing the headers, but we missed it for the case of closing the message without ever parsing all of the headers. --- message.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/message.c b/message.c index bd551ccd..e6488a37 100644 --- a/message.c +++ b/message.c @@ -104,6 +104,12 @@ notmuch_message_close (notmuch_message_t *message) if (message == NULL) return; + if (message->line) + free (message->line); + + if (message->value.size) + free (message->value.str); + if (message->headers) g_hash_table_unref (message->headers); -- 2.26.2