From cb256f409bb53efeda4ac69ee8165a0b4fc1a277 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 23 Jan 2020 14:50:00 +0000 Subject: [PATCH] ITS#9155 lmdb: free mt_spill_pgs in non-nested txn on end --- libraries/liblmdb/mdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index eb5bb41..dffc9d6 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -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); }