]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#8728 fix MDB_VL32 freeing overflow page
authorHoward Chu <hyc@openldap.org>
Sat, 9 Sep 2017 14:08:03 +0000 (15:08 +0100)
committerHoward Chu <hyc@openldap.org>
Sat, 10 Oct 2020 12:09:09 +0000 (13:09 +0100)
libraries/liblmdb/mdb.c

index 9c0b3ca45015c8cb7fdc259076407d85c77f2be5..6287590bb426603bce537234adc93202ea199dd3 100644 (file)
@@ -7041,6 +7041,8 @@ release:
                if (rc)
                        return rc;
        }
+       if (MC_OVPG(mc) == mp)
+               MC_SET_OVPG(mc, NULL);
        mc->mc_db->md_overflow_pages -= ovpages;
 
        if (MDB_REMAPPING(env->me_flags))