git.samba.org
/
metze
/
samba
/
wb-ndr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6991864
)
r19208: Fix Samba3 pidl generation to remove memory leaks.
author
Jeremy Allison
<jra@samba.org>
Mon, 9 Oct 2006 19:40:48 +0000
(19:40 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 19:20:54 +0000
(14:20 -0500)
Jermey.
source/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm
patch
|
blob
|
history
diff --git
a/source/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm
b/source/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm
index 928a88ba5e08a8f0c4cbcb8a3a4daf2a2bd4c432..02fd1884a240e88c44e060ee968528ded8410025 100644
(file)
--- a/
source/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm
+++ b/
source/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 "}";