From: Kris Zyp Date: Tue, 16 Apr 2019 02:07:56 +0000 (-0600) Subject: ITS#9007 don't free loose writemap pages X-Git-Tag: LMDB_0.9.24~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d93fe07184a87cce5bd7a12de83f03e1a900bfe;p=thirdparty%2Fopenldap.git ITS#9007 don't free loose writemap pages Broken in ITS#8756 --- diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index 1e71e3b635..692feaa38b 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -3109,9 +3109,9 @@ mdb_freelist_save(MDB_txn *txn) } else { x = mdb_mid2l_search(dl, mp->mp_pgno); mdb_tassert(txn, dl[x].mid == mp->mp_pgno); + mdb_dpage_free(env, mp); } dl[x].mptr = NULL; - mdb_dpage_free(env, mp); } { /* squash freed slots out of the dirty list */