From fbdd452799b87f40709a48bb316d1df2735f4c9b Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sat, 9 Sep 2017 15:08:03 +0100 Subject: [PATCH] ITS#8728 fix MDB_VL32 freeing overflow page --- libraries/liblmdb/mdb.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index a483e83..cdf1991 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -6518,6 +6518,10 @@ release: if (rc) return rc; } +#ifdef MDB_VL32 + if (mc->mc_ovpg == mp) + mc->mc_ovpg = NULL; +#endif mc->mc_db->md_overflow_pages -= ovpages; return 0; }