]> git.notmuchmail.org Git - notmuch/blobdiff - lib/config.cc
lib/config: remove early free in _get_email_from_passwd_file
[notmuch] / lib / config.cc
index 26280842e496bf57c4bf6ffcce50374056540fb6..50bcf6a28c43037099a616af432081aa25018658 100644 (file)
@@ -542,7 +542,6 @@ _get_email_from_passwd_file (void *ctx)
                             username, hostname, domainname);
 
     talloc_free (username);
-    talloc_free (email);
     return email;
 }
 
@@ -654,6 +653,12 @@ notmuch_config_get (notmuch_database_t *notmuch, notmuch_config_key_t key)
     return _notmuch_string_map_get (notmuch->config, _notmuch_config_key_to_string (key));
 }
 
+const char *
+notmuch_config_path (notmuch_database_t *notmuch)
+{
+    return notmuch->config_path;
+}
+
 notmuch_status_t
 notmuch_config_set (notmuch_database_t *notmuch, notmuch_config_key_t key, const char *val)
 {