ITS#8755 Do not close the default SockBuf a second time

This commit is contained in:
Ondřej Kuzník 2019-05-14 12:54:58 +01:00 committed by Ondřej Kuzník
parent 75e0eba1f7
commit 60754d77c8

View File

@ -131,7 +131,9 @@ ldap_ld_free(
}
LDAP_MUTEX_UNLOCK( &ld->ld_res_mutex );
ber_sockbuf_free( ld->ld_sb );
/* Should already be closed by ldap_free_connection which knows not to free
* this one */
ber_int_sb_destroy( ld->ld_sb );
LDAP_MUTEX_LOCK( &ld->ld_ldopts_mutex );