mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-29 19:19:35 -05:00
Fix mdb_txn cleanup
This commit is contained in:
parent
fd1bf39770
commit
766103a912
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue