mapping_tdb: add missing talloc_free in error path
authorDavid Disseldorp <ddiss@samba.org>
Mon, 3 Nov 2014 13:33:06 +0000 (14:33 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Mon, 10 Nov 2014 15:36:03 +0000 (16:36 +0100)
Reported-by: Michael Croes <mycroes@gmail.com>
Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/groupdb/mapping_tdb.c

index ab79b687e16babe8ddfc87a7b0f4f2c54270608b..e793ef350016e31338c4060a96dde2ca86fac74c 100644 (file)
@@ -69,6 +69,7 @@ static bool init_group_mapping(void)
 
        ldb_path = state_path("group_mapping.ldb");
        if (ldb_path == NULL) {
+               talloc_free(tdb_path);
                return false;
        }
        if (file_exist(ldb_path) && !mapping_switch(ldb_path)) {