From: Howard Chu Date: Fri, 30 Sep 2005 06:04:38 +0000 (+0000) Subject: ITS#4053 free cldap peer address X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~348 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d918bd4dc0b83de2d5b408949c8ff0f559860036;p=openldap ITS#4053 free cldap peer address --- 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;