mirror of
https://github.com/samba-team/samba.git
synced 2025-02-25 17:57:42 +03:00
winbind: Don't leak memory on return.
Reviewed-by: Alexander Bokovoy <ab@samba.org>
This commit is contained in:
parent
b229d1dcb3
commit
d555f6d789
@ -1013,6 +1013,9 @@ static NTSTATUS cm_prepare_connection(const struct winbindd_domain *domain,
|
||||
if ( !(*cli)->domain[0] ) {
|
||||
result = cli_set_domain((*cli), domain->name);
|
||||
if (!NT_STATUS_IS_OK(result)) {
|
||||
SAFE_FREE(ipc_username);
|
||||
SAFE_FREE(ipc_domain);
|
||||
SAFE_FREE(ipc_password);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user