summaryrefslogtreecommitdiff
path: root/source4/pidl/lib/Parse/Pidl/Samba3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-10-09 19:40:48 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:20:54 -0500
commite461cfee2ed62ad001d5e5a57fa32b83a3905733 (patch)
tree4defc05c73c84f996fcc6944ed1ffa73eaf16d01 /source4/pidl/lib/Parse/Pidl/Samba3
parent4ead8b391d9a1b20f2d06cf003a622fd913045e8 (diff)
downloadsamba-e461cfee2ed62ad001d5e5a57fa32b83a3905733.tar.gz
samba-e461cfee2ed62ad001d5e5a57fa32b83a3905733.tar.bz2
samba-e461cfee2ed62ad001d5e5a57fa32b83a3905733.zip
r19208: Fix Samba3 pidl generation to remove memory leaks.
Jermey. (This used to be commit 4b878578c27d499e38b208c87b4fd4b399474092)
Diffstat (limited to 'source4/pidl/lib/Parse/Pidl/Samba3')
-rw-r--r--source4/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm b/source4/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm
index 928a88ba5e..02fd1884a2 100644
--- a/source4/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm
+++ b/source4/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm
@@ -138,7 +138,7 @@ sub ParseFunction($$)
pidl "}";
pidl "";
pidl "blob = ndr_push_blob(push);";
- pidl "if (!prs_init_data_blob(&p->out_data.rdata, &blob, p->mem_ctx)) {";
+ pidl "if (!prs_copy_data_in(&p->out_data.rdata, blob.data, (uint32)blob.length)) {";
pidl "\ttalloc_free(mem_ctx);";
pidl "\treturn False;";
pidl "}";