]> git.sur5r.net Git - openldap/commitdiff
ITS#4053 free cldap peer address
authorHoward Chu <hyc@openldap.org>
Fri, 30 Sep 2005 06:04:38 +0000 (06:04 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 30 Sep 2005 06:04:38 +0000 (06:04 +0000)
libraries/libldap/unbind.c

index 3d92fc507653bfda4ed45e1573b80fe5411fdf10..86b9ab2baa13fd17ca855ca50fee525778d1ad21 100644 (file)
@@ -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;