From: David Bremner Date: Sat, 24 Apr 2021 13:44:28 +0000 (-0300) Subject: lib/config: remove early free in _get_email_from_passwd_file X-Git-Tag: archive/debian/0.32_rc1-1~3 X-Git-Url: https://git.cworth.org/git?p=notmuch;a=commitdiff_plain;h=5f80e106d6f6e695677527b509164a6e5194abd1 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. --- 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; }