From 2558728ff9b22c42db7f82d4d8c82f3cec75aa64 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sun, 24 Sep 2017 19:54:34 -0700 Subject: s4: COM: Remove talloc_autofree_context() from (unused) COM code. Pick up change from Samba: commit fe2ac3e304201d18ca15d388b622a4f15f72ad0a Author: Jeremy Allison Date: Mon Jul 24 12:00:21 2017 -0700 s4: COM: Remove talloc_autofree_context() from (unused) COM code. BUG: https://bugzilla.samba.org/show_bug.cgi?id=12932 Signed-off-by: Jeremy Allison Reviewed-by: Andrew Bartlett Change-Id: I44a4e3794569957c3cdf0721e78e73972ba06085 Reviewed-on: https://code.wireshark.org/review/23694 Reviewed-by: Guy Harris --- tools/pidl/lib/Parse/Pidl/Samba4/COM/Proxy.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/pidl/lib/Parse/Pidl/Samba4/COM/Proxy.pm b/tools/pidl/lib/Parse/Pidl/Samba4/COM/Proxy.pm index 27e1e5d424..35e6e3f0d1 100644 --- a/tools/pidl/lib/Parse/Pidl/Samba4/COM/Proxy.pm +++ b/tools/pidl/lib/Parse/Pidl/Samba4/COM/Proxy.pm @@ -44,9 +44,9 @@ sub ParseRegFunc($) { my $interface = shift; - $res .= "static NTSTATUS dcom_proxy_$interface->{NAME}_init(void) + $res .= "static NTSTATUS dcom_proxy_$interface->{NAME}_init(TALLOC_CTX *ctx) { - struct $interface->{NAME}_vtable *proxy_vtable = talloc(talloc_autofree_context(), struct $interface->{NAME}_vtable); + struct $interface->{NAME}_vtable *proxy_vtable = talloc(ctx, struct $interface->{NAME}_vtable); "; if (defined($interface->{BASE})) { @@ -75,7 +75,7 @@ sub ParseRegFunc($) $res.= " proxy_vtable->iid = ndr_table_$interface->{NAME}.syntax_id.uuid; - return dcom_register_proxy((struct IUnknown_vtable *)proxy_vtable); + return dcom_register_proxy(ctx, (struct IUnknown_vtable *)proxy_vtable); }\n\n"; } -- cgit v1.2.3