]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9155 lmdb: free mt_spill_pgs in non-nested txn on end
authorHoward Chu <hyc@openldap.org>
Thu, 23 Jan 2020 14:50:00 +0000 (14:50 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 23 Jan 2020 14:51:37 +0000 (14:51 +0000)
libraries/liblmdb/mdb.c

index eb5bb418602de0c2333e20cbb180cd94020f6618..dffc9d6b876aa695eb2c78ba9b1d34267bb2860e 100644 (file)
@@ -3350,9 +3350,9 @@ mdb_txn_end(MDB_txn *txn, unsigned mode)
                        txn->mt_parent->mt_flags &= ~MDB_TXN_HAS_CHILD;
                        env->me_pgstate = ((MDB_ntxn *)txn)->mnt_pgstate;
                        mdb_midl_free(txn->mt_free_pgs);
-                       mdb_midl_free(txn->mt_spill_pgs);
                        free(txn->mt_u.dirty_list);
                }
+               mdb_midl_free(txn->mt_spill_pgs);
 
                mdb_midl_free(pghead);
        }