summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/groupdb/mapping_tdb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/groupdb/mapping_tdb.c b/source3/groupdb/mapping_tdb.c
index ab79b687e16..e793ef35001 100644
--- a/source3/groupdb/mapping_tdb.c
+++ b/source3/groupdb/mapping_tdb.c
@@ -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)) {