mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-10 14:23:34 -05:00
ITS#10342 lmdb: fix potential memleak in child txn_begin
This commit is contained in:
parent
ac89f42433
commit
ce339e82bd
1 changed files with 3 additions and 1 deletions
|
|
@ -2974,8 +2974,10 @@ renew:
|
|||
rc = mdb_txn_renew0(txn);
|
||||
}
|
||||
if (rc) {
|
||||
if (txn != env->me_txn0)
|
||||
if (txn != env->me_txn0) {
|
||||
free(txn->mt_u.dirty_list);
|
||||
free(txn);
|
||||
}
|
||||
} else {
|
||||
txn->mt_flags |= flags; /* could not change txn=me_txn0 earlier */
|
||||
*ret = txn;
|
||||
|
|
|
|||
Loading…
Reference in a new issue