From f571f4b2b46cd3a2f5fa49d66e8b6fc04455e498 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Thu, 3 Nov 2005 20:11:22 +0000 Subject: [PATCH] fix previous commit --- libraries/libldap/init.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/libldap/init.c b/libraries/libldap/init.c index cb0fc14e9a..32d54e2977 100644 --- a/libraries/libldap/init.c +++ b/libraries/libldap/init.c @@ -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 } /* -- 2.39.5