From 5f80e106d6f6e695677527b509164a6e5194abd1 Mon Sep 17 00:00:00 2001 From: David Bremner Date: Sat, 24 Apr 2021 10:44:28 -0300 Subject: [PATCH] lib/config: remove early free in _get_email_from_passwd_file This (obvious) bug was caused by cut&pasting the code from notmuch-config.c into the library and adding on a return at the end. --- lib/config.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/config.cc b/lib/config.cc index 7a0da971..50bcf6a2 100644 --- a/lib/config.cc +++ b/lib/config.cc @@ -542,7 +542,6 @@ _get_email_from_passwd_file (void *ctx) username, hostname, domainname); talloc_free (username); - talloc_free (email); return email; } -- 2.43.0