mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-19 02:28:47 -05:00
ITS#10342 lmdb: fix potential memleak in child txn_begin
This commit is contained in:
parent
f20e41de09
commit
0e098f95ff
1 changed files with 2 additions and 3 deletions
|
|
@ -3309,9 +3309,8 @@ renew:
|
|||
}
|
||||
if (rc) {
|
||||
if (txn != env->me_txn0) {
|
||||
#ifdef MDB_VL32
|
||||
free(txn->mt_rpages);
|
||||
#endif
|
||||
/* mt_rpages is owned by parent */
|
||||
free(txn->mt_u.dirty_list);
|
||||
free(txn);
|
||||
}
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue