r4481: get rid of the last leak
authorAndrew Tridgell <tridge@samba.org>
Sun, 2 Jan 2005 13:04:32 +0000 (13:04 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:08:10 +0000 (13:08 -0500)
(This used to be commit 52de02b2c31eefac75ce0582ed8acae8007e7cc2)

source4/lib/dcom/classes/simple.c

index e8b8730267f4ff81b457b3803e3cc7a3293e4d02..90dda6bc84a5c9b890988b2a8b2e48a078b05773 100644 (file)
@@ -32,7 +32,9 @@ NTSTATUS dcom_simple_init(void)
 
        GUID_from_string(DCERPC_IUNKNOWN_UUID, &iid);
 
 
        GUID_from_string(DCERPC_IUNKNOWN_UUID, &iid);
 
-       simple_class.class_object = dcom_new_local_ifacep(NULL, dcom_interface_by_iid(&iid), &simple_classobject, NULL);
+       simple_class.class_object = dcom_new_local_ifacep(talloc_autofree_context(),
+                                                         dcom_interface_by_iid(&iid), 
+                                                         &simple_classobject, NULL);
 
        GUID_from_string("5e9ddec7-5767-11cf-beab-00aa006c3606", &simple_class.clsid);
        return dcom_register_class(&simple_class);
 
        GUID_from_string("5e9ddec7-5767-11cf-beab-00aa006c3606", &simple_class.clsid);
        return dcom_register_class(&simple_class);