aboutsummaryrefslogtreecommitdiff
path: root/external/db_drivers/liblmdb/mdb.c
diff options
context:
space:
mode:
authorHoward Chu <hyc@symas.com>2017-09-09 15:10:23 +0100
committerHoward Chu <hyc@symas.com>2017-09-09 15:10:23 +0100
commitedda20146e793b41e6b3181324ab09dd8df15053 (patch)
treea3e53fb299895d486054b84c23831589e3a980b9 /external/db_drivers/liblmdb/mdb.c
parentMerge pull request #2384 (diff)
downloadmonero-edda20146e793b41e6b3181324ab09dd8df15053.tar.xz
ITS#8728 fix MDB_VL32 freeing overflow page
Fix #2420
Diffstat (limited to 'external/db_drivers/liblmdb/mdb.c')
-rw-r--r--external/db_drivers/liblmdb/mdb.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/external/db_drivers/liblmdb/mdb.c b/external/db_drivers/liblmdb/mdb.c
index 377512ebe..b3de9702f 100644
--- a/external/db_drivers/liblmdb/mdb.c
+++ b/external/db_drivers/liblmdb/mdb.c
@@ -6288,6 +6288,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;
}