[Git][openldap/openldap][master] ITS#9249 librewrite: fix malloc/free corruption