From 51ec59db10306fd90211c237fd672acf3ab3304a Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 18 Jul 2012 15:07:28 +0930 Subject: [PATCH] source3/torture/pdbtest: allocate talloc_stackframe() Avoid talloc_tos() without a stackframe. Signed-off-by: Rusty Russell --- source3/torture/pdbtest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/torture/pdbtest.c b/source3/torture/pdbtest.c index c4c6bb68716..821f39bee73 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); -- 2.34.1