Well, I think we found the leak. The lastmod attributes where not being properly prepended to the modlist and hence not properly freed. I committed changes to OPENLDAP_REL_ENG_1_2 to correct this problem. Please test.