svn commit: samba r19208 - in branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba3: .

jra at samba.org jra at samba.org
Mon Oct 9 19:40:50 GMT 2006


Author: jra
Date: 2006-10-09 19:40:48 +0000 (Mon, 09 Oct 2006)
New Revision: 19208

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=19208

Log:
Fix Samba3 pidl generation to remove memory leaks.
Jermey.

Modified:
   branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm


Changeset:
Modified: branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm
===================================================================
--- branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm	2006-10-09 19:20:21 UTC (rev 19207)
+++ branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm	2006-10-09 19:40:48 UTC (rev 19208)
@@ -138,7 +138,7 @@
 	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 "}";



More information about the samba-cvs mailing list