mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-15 08:37:48 -05:00
ITS#7241 unbind: free socket prior to destroying TLS context
This commit is contained in:
parent
73b631b814
commit
221531b31a
1 changed files with 3 additions and 2 deletions
|
|
@ -129,6 +129,9 @@ ldap_ld_free(
|
|||
ld->ld_abandoned = NULL;
|
||||
}
|
||||
LDAP_MUTEX_UNLOCK( &ld->ld_res_mutex );
|
||||
|
||||
ber_sockbuf_free( ld->ld_sb );
|
||||
|
||||
LDAP_MUTEX_LOCK( &ld->ld_ldopts_mutex );
|
||||
|
||||
/* final close callbacks */
|
||||
|
|
@ -217,8 +220,6 @@ ldap_ld_free(
|
|||
}
|
||||
LDAP_MUTEX_UNLOCK( &ld->ld_ldopts_mutex );
|
||||
|
||||
ber_sockbuf_free( ld->ld_sb );
|
||||
|
||||
#ifdef LDAP_R_COMPILE
|
||||
ldap_pvt_thread_mutex_destroy( &ld->ld_msgid_mutex );
|
||||
ldap_pvt_thread_mutex_destroy( &ld->ld_conn_mutex );
|
||||
|
|
|
|||
Loading…
Reference in a new issue