r24983: setup the correct talloc name for structures used in the generated
[kai/samba.git] / source4 / pidl / lib / Parse / Pidl / Samba4 / NDR / Server.pm
index b6980acc0f7b8e9a7d725b8954effb079779ab44..ed17fcc0da1ab5af2b6337101b57e049303aaae1 100644 (file)
@@ -111,7 +111,10 @@ static NTSTATUS $name\__op_ndr_pull(struct dcesrv_call_state *dce_call, TALLOC_C
                return NT_STATUS_NET_WRITE_FAULT;
        }
 
-       *r = talloc_size(mem_ctx, ndr_table_$name.calls[opnum].struct_size);
+       *r = talloc_named(mem_ctx,
+                         ndr_table_$name.calls[opnum].struct_size,
+                         \"struct %s\",
+                         ndr_table_$name.calls[opnum].name);
        NT_STATUS_HAVE_NO_MEMORY(*r);
 
         /* unravel the NDR for the packet */