summaryrefslogtreecommitdiff
path: root/source4/torture/nbt/winsreplication.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-09-07 16:27:57 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:05:30 -0500
commitff83c689cbc3216cced4e71c6f2e5e4c1a62e987 (patch)
tree578abb60028c1917361a957a6455077b78806366 /source4/torture/nbt/winsreplication.c
parente7efc7a533fd19b61515db058f31490ac75e5a79 (diff)
downloadsamba-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/winsreplication.c')
-rw-r--r--source4/torture/nbt/winsreplication.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source4/torture/nbt/winsreplication.c b/source4/torture/nbt/winsreplication.c
index 0d9e758647..69ef56231b 100644
--- a/source4/torture/nbt/winsreplication.c
+++ b/source4/torture/nbt/winsreplication.c
@@ -9669,11 +9669,10 @@ static bool torture_nbt_winsreplication_owned(struct torture_context *tctx)
/*
test simple WINS replication operations
*/
-struct torture_suite *torture_nbt_winsreplication(void)
+struct torture_suite *torture_nbt_winsreplication(TALLOC_CTX *mem_ctx)
{
struct torture_suite *suite = torture_suite_create(
- talloc_autofree_context(),
- "WINSREPLICATION");
+ mem_ctx, "WINSREPLICATION");
struct torture_tcase *tcase;
tcase = torture_suite_add_simple_test(suite, "assoc_ctx1",