1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +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-09-05 10:24:43 +12:00 committed by Andrew Bartlett
parent 7718a9d61b
commit bf9b16884b

View File

@ -1308,7 +1308,7 @@ static NTSTATUS samba_kdc_update_delegation_info_blob(TALLOC_CTX *mem_ctx,
old_blob.data = (uint8_t *)old_data.data; old_blob.data = (uint8_t *)old_data.data;
if (old_blob.length > 0) { if (old_blob.length > 0) {
ndr_err = ndr_pull_union_blob(&old_blob, mem_ctx, ndr_err = ndr_pull_union_blob(&old_blob, tmp_ctx,
&info, PAC_TYPE_CONSTRAINED_DELEGATION, &info, PAC_TYPE_CONSTRAINED_DELEGATION,
(ndr_pull_flags_fn_t)ndr_pull_PAC_INFO); (ndr_pull_flags_fn_t)ndr_pull_PAC_INFO);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) { if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {