mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-21 18:38:08 +01:00
lib/open: free GKeyFile
This fixes a small-to-medium (depending on size of config file) memory leak.
This commit is contained in:
parent
50092a0375
commit
6967dcbb02
1 changed files with 6 additions and 0 deletions
|
@ -375,6 +375,9 @@ notmuch_database_open_with_config (const char *database_path,
|
|||
DONE:
|
||||
talloc_free (local);
|
||||
|
||||
if (key_file)
|
||||
g_key_file_free (key_file);
|
||||
|
||||
if (message) {
|
||||
if (status_string)
|
||||
*status_string = message;
|
||||
|
@ -492,6 +495,9 @@ notmuch_database_create_with_config (const char *database_path,
|
|||
DONE:
|
||||
talloc_free (local);
|
||||
|
||||
if (key_file)
|
||||
g_key_file_free (key_file);
|
||||
|
||||
if (message) {
|
||||
if (status_string)
|
||||
*status_string = message;
|
||||
|
|
Loading…
Reference in a new issue