mirror of
https://github.com/samba-team/samba.git
synced 2025-11-09 20:23:51 +03:00
r5037: got rid of all of the TALLOC_DEPRECATED stuff. My apologies for the
large commit. I thought this was worthwhile to get done for consistency.
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
1d1a9c11ee
commit
ec32b22ed5
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user