lib/open: free GKeyFile

This fixes a small-to-medium (depending on size of config file) memory
leak.
This commit is contained in:
David Bremner 2021-03-06 09:49:34 -04:00
parent 50092a0375
commit 6967dcbb02

View file

@ -375,6 +375,9 @@ notmuch_database_open_with_config (const char *database_path,
DONE: DONE:
talloc_free (local); talloc_free (local);
if (key_file)
g_key_file_free (key_file);
if (message) { if (message) {
if (status_string) if (status_string)
*status_string = message; *status_string = message;
@ -492,6 +495,9 @@ notmuch_database_create_with_config (const char *database_path,
DONE: DONE:
talloc_free (local); talloc_free (local);
if (key_file)
g_key_file_free (key_file);
if (message) { if (message) {
if (status_string) if (status_string)
*status_string = message; *status_string = message;