mirror of
https://github.com/samba-team/samba.git
synced 2025-01-08 21:18:16 +03:00
s4:kdc: Fix leak
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
c559e9922e
commit
3045908557
@ -1287,10 +1287,12 @@ static krb5_error_code samba_kdc_obtain_user_info_dc(TALLOC_CTX *mem_ctx,
|
||||
|
||||
if (resource_groups_out != NULL) {
|
||||
*resource_groups_out = resource_groups;
|
||||
resource_groups = NULL;
|
||||
}
|
||||
|
||||
out:
|
||||
TALLOC_FREE(user_info_dc);
|
||||
TALLOC_FREE(resource_groups);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user