1
0
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:
Andrew Tridgell 2006-10-16 11:03:12 +00:00 committed by Gerald (Jerry) Carter
parent 69e755892a
commit 915c281deb

View File

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