From d918bd4dc0b83de2d5b408949c8ff0f559860036 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 30 Sep 2005 06:04:38 +0000 Subject: [PATCH] ITS#4053 free cldap peer address --- libraries/libldap/unbind.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libraries/libldap/unbind.c b/libraries/libldap/unbind.c index 3d92fc5076..86b9ab2baa 100644 --- a/libraries/libldap/unbind.c +++ b/libraries/libldap/unbind.c @@ -140,6 +140,13 @@ ldap_ld_free( ld->ld_options.ldo_defludp = NULL; } +#ifdef LDAP_CONNECTIONLESS + if ( ld->ld_options.ldo_peer != NULL ) { + LDAP_FREE( ld->ld_options.ldo_peer ); + ld->ld_options.ldo_peer = NULL; + } +#endif + if ( ld->ld_options.ldo_tm_api != NULL ) { LDAP_FREE( ld->ld_options.ldo_tm_api ); ld->ld_options.ldo_tm_api = NULL; -- 2.39.5