From 722d20f4ddef98ba8f305ea858c54e5df54ca27c Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 31 Aug 2006 09:26:43 +0000 Subject: 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) --- source4/torture/misc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/torture/misc.c') 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); -- cgit