mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-25 04:18:08 +01:00
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.
This commit is contained in:
parent
00b65cad98
commit
25aef82877
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue