]> git.cworth.org Git - notmuch/commitdiff
lib/config: remove early free in _get_email_from_passwd_file
authorDavid Bremner <david@tethera.net>
Sat, 24 Apr 2021 13:44:28 +0000 (10:44 -0300)
committerDavid Bremner <david@tethera.net>
Sat, 24 Apr 2021 15:11:45 +0000 (12:11 -0300)
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

index 7a0da9716bf9a36ef4b1b5abad7cc5aabdee3049..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;
 }