s4: COM: Remove talloc_autofree_context() from (unused) COM code.
[metze/samba/wip.git] / source4 / lib / com / dcom / tables.c
index f94aa879253e68c0eba04644481c81840652e3de..7f745c1d479f23d9695f2e54f83dc37bdb078e8d 100644 (file)
@@ -29,9 +29,10 @@ static struct dcom_proxy {
        struct dcom_proxy *prev, *next;
 }  *proxies = NULL;
 
-NTSTATUS dcom_register_proxy(struct IUnknown_vtable *proxy_vtable)
+NTSTATUS dcom_register_proxy(TALLOC_CTX *ctx,
+               struct IUnknown_vtable *proxy_vtable)
 {
-       struct dcom_proxy *proxy = talloc(talloc_autofree_context(), struct dcom_proxy);
+       struct dcom_proxy *proxy = talloc(ctx, struct dcom_proxy);
 
        proxy->vtable = proxy_vtable;
        DLIST_ADD(proxies, proxy);
@@ -57,9 +58,10 @@ static struct dcom_marshal {
        struct dcom_marshal *prev, *next;
 }  *marshals = NULL;
 
-NTSTATUS dcom_register_marshal(struct GUID *clsid, marshal_fn marshal, unmarshal_fn unmarshal)
+NTSTATUS dcom_register_marshal(TALLOC_CTX *ctx,
+               struct GUID *clsid, marshal_fn marshal, unmarshal_fn unmarshal)
 {
-       struct dcom_marshal *p = talloc(talloc_autofree_context(), struct dcom_marshal);
+       struct dcom_marshal *p = talloc(ctx, struct dcom_marshal);
 
        p->clsid = *clsid;
        p->marshal = marshal;