From 766103a9129436d3ff48dd3ef6d92aacb0959a20 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 19 Sep 2014 19:22:14 +0100 Subject: [PATCH] Fix mdb_txn cleanup --- servers/slapd/back-mdb/id2entry.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/servers/slapd/back-mdb/id2entry.c b/servers/slapd/back-mdb/id2entry.c index 3d3463a88d..4efdba6756 100644 --- a/servers/slapd/back-mdb/id2entry.c +++ b/servers/slapd/back-mdb/id2entry.c @@ -538,11 +538,11 @@ int mdb_txn( Operation *op, int txnop, OpExtra **ptr ) return mdb_opinfo_get( op, mdb, 0, moip ); case SLAP_TXN_COMMIT: rc = mdb_txn_commit( moi->moi_txn ); - op->o_tmpfree( op->o_tmpmemctx, moi ); + op->o_tmpfree( moi, op->o_tmpmemctx ); return rc; case SLAP_TXN_ABORT: mdb_txn_abort( moi->moi_txn ); - op->o_tmpfree( op->o_tmpmemctx, moi ); + op->o_tmpfree( moi, op->o_tmpmemctx ); return 0; } return LDAP_OTHER; -- 2.39.5