mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 17:34:54 +01:00
Close message file after parsing message headers
Keeping unused files open helps to see "Too many open files" often. Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.net>
This commit is contained in:
parent
0dab6a2c1e
commit
dc5a9d8eb2
1 changed files with 5 additions and 0 deletions
|
@ -325,6 +325,11 @@ notmuch_message_file_get_header (notmuch_message_file_t *message,
|
|||
return decoded_value;
|
||||
}
|
||||
|
||||
if (message->parsing_finished) {
|
||||
fclose (message->file);
|
||||
message->file = NULL;
|
||||
}
|
||||
|
||||
if (message->line)
|
||||
free (message->line);
|
||||
message->line = NULL;
|
||||
|
|
Loading…
Reference in a new issue