From: Howard Chu Date: Fri, 19 Sep 2014 18:22:14 +0000 (+0100) Subject: Fix mdb_txn cleanup X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=766103a9129436d3ff48dd3ef6d92aacb0959a20;p=openldap Fix mdb_txn cleanup --- 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;