https://bugs.openldap.org/show_bug.cgi?id=9564
--- Comment #2 from Howard Chu hyc@openldap.org --- Thanks, committed to mdb.master3.
I made the corresponding fix in mdb.master and mdb.RE/0.9. I decided the ifdefs made it ugly enough that it wasn't worth saving the references to free them after the unlock.