diff options
author | Andrew Tridgell <tridge@samba.org> | 2008-09-23 15:20:24 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2008-09-23 15:20:24 +1000 |
commit | e3a562b1cd63cbd92c231a3e18b9164f42111e95 (patch) | |
tree | 1d2187f58cfa016927152b955a9a571ec45dde06 /source4/torture | |
parent | 2b6e139206e5f436dd51437599d0228d8db77a78 (diff) | |
download | samba-e3a562b1cd63cbd92c231a3e18b9164f42111e95.tar.gz samba-e3a562b1cd63cbd92c231a3e18b9164f42111e95.tar.bz2 samba-e3a562b1cd63cbd92c231a3e18b9164f42111e95.zip |
fixed a memory error in change notify handling in gentest
Diffstat (limited to 'source4/torture')
-rw-r--r-- | source4/torture/gentest.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/torture/gentest.c b/source4/torture/gentest.c index af5a95e751..1bb7c4debd 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++; |