summaryrefslogtreecommitdiff
path: root/source3/torture
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2012-07-18 15:07:28 +0930
committerRusty Russell <rusty@rustcorp.com.au>2012-07-18 15:07:28 +0930
commit51ec59db10306fd90211c237fd672acf3ab3304a (patch)
treefa4f7a5541417a1cbdfe97d8239fe3951bb56adf /source3/torture
parent1f8b574adb10397ca4b9dc4a55281d3afaaeabfc (diff)
downloadsamba-51ec59db10306fd90211c237fd672acf3ab3304a.tar.gz
samba-51ec59db10306fd90211c237fd672acf3ab3304a.tar.bz2
samba-51ec59db10306fd90211c237fd672acf3ab3304a.zip
source3/torture/pdbtest: allocate talloc_stackframe()
Avoid talloc_tos() without a stackframe. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'source3/torture')
-rw-r--r--source3/torture/pdbtest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/torture/pdbtest.c b/source3/torture/pdbtest.c
index c4c6bb6871..821f39bee7 100644
--- a/source3/torture/pdbtest.c
+++ b/source3/torture/pdbtest.c
@@ -347,6 +347,8 @@ int main(int argc, char **argv)
POPT_TABLEEND
};
+ ctx = talloc_stackframe();
+
load_case_tables();
pc = poptGetContext("pdbtest", argc, (const char **) argv,
@@ -372,8 +374,6 @@ int main(int argc, char **argv)
exit(1);
}
- ctx = talloc_init("PDBTEST");
-
if (!(out = samu_new(ctx))) {
fprintf(stderr, "Can't create samu structure.\n");
exit(1);