diff options
author | David Bremner <david@tethera.net> | 2021-03-06 09:49:34 -0400 |
---|---|---|
committer | David Bremner <david@tethera.net> | 2021-03-13 09:02:36 -0400 |
commit | 6967dcbb025280d33c9cd08502de7a5cdb051ae7 (patch) | |
tree | df9f63c33137c3f9b42d640efacd52d179c373fe /lib | |
parent | 50092a03752180489ecc343eea93f0540c6a47af (diff) |
lib/open: free GKeyFile
This fixes a small-to-medium (depending on size of config file) memory
leak.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/open.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/open.cc b/lib/open.cc index b28b64e8..0c965d0d 100644 --- a/lib/open.cc +++ b/lib/open.cc @@ -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; |