diff options
author | Stefan Metzmacher <metze@samba.org> | 2006-08-31 09:26:43 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:16:57 -0500 |
commit | 722d20f4ddef98ba8f305ea858c54e5df54ca27c (patch) | |
tree | 444f5a6845909d995e5744dfef22c52ddf421234 /source4/torture/misc.c | |
parent | cca9dbb66f605edc950dc048eb51cc39d14a01d3 (diff) | |
download | samba-722d20f4ddef98ba8f305ea858c54e5df54ca27c.tar.gz samba-722d20f4ddef98ba8f305ea858c54e5df54ca27c.tar.bz2 samba-722d20f4ddef98ba8f305ea858c54e5df54ca27c.zip |
r17958: as talloc_init() enabled null tracking, we should avoid to use it
in smbtorture, and in the LOCAL-TALLOC we should reset the null tracking
also make bin/smbtorture //url/foo LOCAL-TALLOC LOCAL-TALLOC possible
metze
(This used to be commit d1dd3df5e4fd21f5cbd00e472438fe3eadb266e5)
Diffstat (limited to 'source4/torture/misc.c')
-rw-r--r-- | source4/torture/misc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/torture/misc.c b/source4/torture/misc.c index f04b7782eb..62b956337c 100644 --- a/source4/torture/misc.c +++ b/source4/torture/misc.c @@ -395,7 +395,7 @@ static BOOL torture_ioctl_test(struct torture_context *torture) return False; } - mem_ctx = talloc_init("ioctl_test"); + mem_ctx = talloc_named_const(torture, 0, "ioctl_test"); printf("starting ioctl test\n"); @@ -786,7 +786,7 @@ static BOOL run_benchrw(struct torture_context *torture) torture_numops,torture_nprocs); /*init talloc context*/ - mem_ctx = talloc_init("bench-readwrite"); + mem_ctx = talloc_named_const(torture, 0, "bench-readwrite"); ev = event_context_init(mem_ctx); state = talloc_array(mem_ctx, struct benchrw_state *, torture_nprocs); |