]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/unbind.c
Cast char* argument to hh_to_c() to Byte*
[openldap] / libraries / libldap / unbind.c
index a1c91e5e7122ef4fe4779b08a46f27e7675c0dbd..7f17a1bb7363c24306d15a0f2caf251fcd59f363 100644 (file)
@@ -91,6 +91,8 @@ ldap_ld_free( LDAP *ld, int close )
 #ifdef LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS
        if ( ld->ld_selectinfo != NULL )
                ldap_free_select_info( ld->ld_selectinfo );
+#else
+       ber_clear( &(ld->ld_ber), 1 );
 #endif /* LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS */
 
        if ( ld->ld_options.ldo_defbase != NULL )