summaryrefslogtreecommitdiff
path: root/source4/librpc/ndr
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-10-16 11:03:12 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:21:09 -0500
commit915c281deb99621a83ac42ffaf913ca20fa5dd65 (patch)
tree885965df0efa3e00a4ee6a0e52ccc0dee208cba8 /source4/librpc/ndr
parent69e755892ab68c42cfc04f43c3b2ee0d0f29264d (diff)
downloadsamba-915c281deb99621a83ac42ffaf913ca20fa5dd65.tar.gz
samba-915c281deb99621a83ac42ffaf913ca20fa5dd65.tar.bz2
samba-915c281deb99621a83ac42ffaf913ca20fa5dd65.zip
r19326: don't leak a ndr_push structure on ndr_push_struct_blob()
(This used to be commit 9817cc235c5fd787855c60fa58f68b14f78cdb94)
Diffstat (limited to 'source4/librpc/ndr')
-rw-r--r--source4/librpc/ndr/ndr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/librpc/ndr/ndr.c b/source4/librpc/ndr/ndr.c
index 636353f53f..6a48980c6e 100644
--- a/source4/librpc/ndr/ndr.c
+++ b/source4/librpc/ndr/ndr.c
@@ -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;
}