mirror of
https://github.com/samba-team/samba.git
synced 2025-01-03 01:18:10 +03:00
libnet3: Fix Coverity ID 1034874 Resource leak
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
644a44656c
commit
eb8968534d
@ -893,12 +893,11 @@ static bool libnet_join_derive_salting_principal(TALLOC_CTX *mem_ctx,
|
||||
}
|
||||
|
||||
salt = talloc_strdup(mem_ctx, std_salt);
|
||||
SAFE_FREE(std_salt);
|
||||
if (!salt) {
|
||||
return false;
|
||||
}
|
||||
|
||||
SAFE_FREE(std_salt);
|
||||
|
||||
/* if it's a Windows functional domain, we have to look for the UPN */
|
||||
|
||||
if (domain_func == DS_DOMAIN_FUNCTION_2000) {
|
||||
|
Loading…
Reference in New Issue
Block a user