1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00

r21853: Fix a valgrind error

This commit is contained in:
Volker Lendecke 2007-03-16 13:09:09 +00:00 committed by Gerald (Jerry) Carter
parent ff886436b7
commit d0d16cc55a

View File

@ -414,6 +414,11 @@ static BOOL wb_lookup_rids(TALLOC_CTX *mem_ctx,
return True;
}
if (!(*domain_name = talloc_strdup(mem_ctx, *domain_name))) {
TALLOC_FREE(tmp_ctx);
return False;
}
/*
* winbind_lookup_rids allocates its own array. We've been given the
* array, so copy it over