mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
r19326: don't leak a ndr_push structure on ndr_push_struct_blob()
(This used to be commit 9817cc235c
)
This commit is contained in:
parent
69e755892a
commit
915c281deb
@ -795,6 +795,8 @@ _PUBLIC_ NTSTATUS ndr_push_struct_blob(DATA_BLOB *blob, TALLOC_CTX *mem_ctx, con
|
||||
}
|
||||
|
||||
*blob = ndr_push_blob(ndr);
|
||||
talloc_steal(mem_ctx, blob->data);
|
||||
talloc_free(ndr);
|
||||
|
||||
return NT_STATUS_OK;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user