ITS#10342 lmdb: fix potential memleak in child txn_begin

This commit is contained in:
jinyaoguo 2025-05-27 21:47:48 -04:00 committed by Howard Chu
parent f20e41de09
commit 0e098f95ff

View file

@ -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 {