1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-27 22:50:26 +03:00

mapping_tdb: add missing talloc_free in error path

Reported-by: Michael Croes <mycroes@gmail.com>
Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
David Disseldorp 2014-11-03 14:33:06 +01:00 committed by Andreas Schneider
parent 2afc5b7978
commit 6e86bd5dab

View 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)) {