]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#10342 lmdb: fix potential memleak in child txn_begin
authorjinyaoguo <guo846@purdue.edu>
Wed, 28 May 2025 01:47:48 +0000 (21:47 -0400)
committerHoward Chu <hyc@openldap.org>
Tue, 10 Jun 2025 19:36:16 +0000 (20:36 +0100)
libraries/liblmdb/mdb.c

index 79e90c95c767a4e59049291aa20596d1a34fe064..57758db9c279bf76bf3605572a3ef0f263d2348b 100644 (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 {