diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-09-07 16:27:57 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 15:05:30 -0500 |
commit | ff83c689cbc3216cced4e71c6f2e5e4c1a62e987 (patch) | |
tree | 578abb60028c1917361a957a6455077b78806366 /source4/torture/nbt/query.c | |
parent | e7efc7a533fd19b61515db058f31490ac75e5a79 (diff) | |
download | samba-ff83c689cbc3216cced4e71c6f2e5e4c1a62e987.tar.gz samba-ff83c689cbc3216cced4e71c6f2e5e4c1a62e987.tar.bz2 samba-ff83c689cbc3216cced4e71c6f2e5e4c1a62e987.zip |
r25004: Avoid talloc_autofree_context() when possible.
(This used to be commit 79669d28a346c9ae4abc7308070b25e07fe57433)
Diffstat (limited to 'source4/torture/nbt/query.c')
-rw-r--r-- | source4/torture/nbt/query.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source4/torture/nbt/query.c b/source4/torture/nbt/query.c index 5794d840ec..2f3a51a98c 100644 --- a/source4/torture/nbt/query.c +++ b/source4/torture/nbt/query.c @@ -104,10 +104,9 @@ static bool bench_namequery(struct torture_context *tctx) /* benchmark how fast a server can respond to name queries */ -struct torture_suite *torture_bench_nbt(void) +struct torture_suite *torture_bench_nbt(TALLOC_CTX *mem_ctx) { - struct torture_suite *suite = torture_suite_create(talloc_autofree_context(), - "BENCH"); + struct torture_suite *suite = torture_suite_create(mem_ctx, "BENCH"); torture_suite_add_simple_test(suite, "namequery", bench_namequery); return suite; |