]> git.sur5r.net Git - openldap/commitdiff
fix previous commit
authorPierangelo Masarati <ando@openldap.org>
Thu, 3 Nov 2005 20:11:22 +0000 (20:11 +0000)
committerPierangelo Masarati <ando@openldap.org>
Thu, 3 Nov 2005 20:11:22 +0000 (20:11 +0000)
libraries/libldap/init.c

index cb0fc14e9a0db0a433282efd3deb62a3b33ad363..32d54e2977347cb8bad14f70e55e77b9c55bc4ff 100644 (file)
@@ -410,10 +410,13 @@ ldap_int_destroy_global_options(void)
        WSACleanup( );
 #endif
 
+#if defined(LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND) \
+       || defined(HAVE_TLS) || defined(HAVE_CYRUS_SASL)
        if ( ldap_int_hostname ) {
                LDAP_FREE( ldap_int_hostname );
                ldap_int_hostname = NULL;
        }
+#endif
 }
 
 /*