summaryrefslogtreecommitdiff
path: root/source4/torture/gentest.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2008-09-23 15:20:24 +1000
committerAndrew Tridgell <tridge@samba.org>2008-09-23 15:20:24 +1000
commite3a562b1cd63cbd92c231a3e18b9164f42111e95 (patch)
tree1d2187f58cfa016927152b955a9a571ec45dde06 /source4/torture/gentest.c
parent2b6e139206e5f436dd51437599d0228d8db77a78 (diff)
downloadsamba-e3a562b1cd63cbd92c231a3e18b9164f42111e95.tar.gz
fixed a memory error in change notify handling in gentest
Diffstat (limited to 'source4/torture/gentest.c')
-rw-r--r--source4/torture/gentest.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/torture/gentest.c b/source4/torture/gentest.c
index af5a95e7517..1bb7c4debd1 100644
--- a/source4/torture/gentest.c
+++ b/source4/torture/gentest.c
@@ -2907,12 +2907,11 @@ static int run_test(struct event_context *ev, struct loadparm_context *lp_ctx)
current_op.opnum = op;
current_op.name = gen_ops[which_op].name;
current_op.status = NT_STATUS_OK;
+ talloc_free(current_op.mem_ctx);
current_op.mem_ctx = talloc_named(NULL, 0, "%s", current_op.name);
ret = gen_ops[which_op].handler(instance);
- talloc_free(current_op.mem_ctx);
-
gen_ops[which_op].count++;
if (NT_STATUS_IS_OK(current_op.status)) {
gen_ops[which_op].success_count++;