https://bugs.openldap.org/show_bug.cgi?id=7439
--- Comment #4 from Howard Chu hyc@openldap.org --- (In reply to Ondřej Kuzník from comment #3)
Managed to repro with -DSLAP_NO_SL_MALLOC:
Don't know if rwm should stop freeing parts of provided filters or syncrepl should allocate the avas. Probably the former...
Right, rwm should probably stash the incoming filter and restore it on return.