mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-18 18:18:06 -05:00
ITS#10342 lmdb: fix potential memleak in child txn_begin
This commit is contained in:
parent
71fe835056
commit
2b77f6ffc2
1 changed files with 2 additions and 4 deletions
|
|
@ -3547,10 +3547,8 @@ renew:
|
|||
}
|
||||
if (rc) {
|
||||
if (txn != env->me_txn0) {
|
||||
#if MDB_RPAGE_CACHE
|
||||
if (MDB_REMAPPING(env->me_flags))
|
||||
free(txn->mt_rpages);
|
||||
#endif
|
||||
/* mt_rpages belongs to parent */
|
||||
free(txn->mt_u.dirty_list);
|
||||
free(txn);
|
||||
}
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue