[Git][openldap/openldap][master] ITS#9876 Coverity fixes: plug memleaks