1
0
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:
Joseph Sutton 2023-10-03 18:45:14 +13:00 committed by Andrew Bartlett
parent c559e9922e
commit 3045908557

View File

@ -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;
}