r5037: got rid of all of the TALLOC_DEPRECATED stuff. My apologies for the
[abartlet/samba.git/.git] / source4 / lib / dcom / common / tables.c
index 8a764d0a65ee9989ef1b5f5fdd46dc2bc09bf38f..cd7e0867ee7430d1c7b6d7f7e3a0942a37ab43ad 100644 (file)
@@ -81,9 +81,9 @@ NTSTATUS dcom_register_interface(const void *_iface)
 
        DEBUG(5, ("Adding DCOM interface %s\n", GUID_string(lcl_ctx, &iface->iid)));
 
-       talloc_destroy(lcl_ctx);
+       talloc_free(lcl_ctx);
        
-       l = talloc_zero_p(interfaces?interfaces:talloc_autofree_context(), 
+       l = talloc_zero(interfaces?interfaces:talloc_autofree_context(), 
                          struct interface_list);
 
        l->interface = *iface;
@@ -96,7 +96,7 @@ NTSTATUS dcom_register_interface(const void *_iface)
 NTSTATUS dcom_register_class(const void *_class)
 {
        const struct dcom_class *class = _class;
-       struct class_list *l = talloc_zero_p(classes?classes:talloc_autofree_context(), 
+       struct class_list *l = talloc_zero(classes?classes:talloc_autofree_context(), 
                                             struct class_list);
 
        l->class = *class;