r5037: got rid of all of the TALLOC_DEPRECATED stuff. My apologies for the
[nivanova/samba-autobuild/.git] / source4 / utils / net / net.c
index 350ec251d9e9b8d90eb9b3d25cd6d3f60af51d15..7b716f0916314eeba97c5ca79078290b99e1ab90 100644 (file)
@@ -210,7 +210,7 @@ static int binary_net(int argc, const char **argv)
        net_init_subsystems;
 
        mem_ctx = talloc_init("net_context");
-       ctx = talloc_p(mem_ctx, struct net_context);
+       ctx = talloc(mem_ctx, struct net_context);
        if (!ctx) {
                d_printf("talloc_init(net_context) failed\n");
                exit(1);
@@ -228,7 +228,7 @@ static int binary_net(int argc, const char **argv)
                DEBUG(0,("return code = %d\n", rc));
        }
 
-       talloc_destroy(mem_ctx);
+       talloc_free(mem_ctx);
        return rc;
 }