summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/open.cc6
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;