mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
ldb-samba:ldif_handlers: extended_dn_read_Sid(): free on failure
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
42f2d96f82
commit
2d3b917d0a
@ -235,6 +235,7 @@ static int extended_dn_read_SID(struct ldb_context *ldb, void *mem_ctx,
|
|||||||
ndr_err = ndr_pull_struct_blob_all_noalloc(out, &sid,
|
ndr_err = ndr_pull_struct_blob_all_noalloc(out, &sid,
|
||||||
(ndr_pull_flags_fn_t)ndr_pull_dom_sid);
|
(ndr_pull_flags_fn_t)ndr_pull_dom_sid);
|
||||||
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
|
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
|
||||||
|
TALLOC_FREE(out->data);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user