Fix memory leak in ldap_bind().