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:
parent
2afc5b7978
commit
6e86bd5dab
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user