mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
ld_abandoned must be protected by ld_res_mutex
This commit is contained in:
parent
7cba7d0b39
commit
bf860f0596
@ -106,6 +106,11 @@ ldap_ld_free(
|
||||
next = lm->lm_next;
|
||||
ldap_msgfree( lm );
|
||||
}
|
||||
|
||||
if ( ld->ld_abandoned != NULL ) {
|
||||
LDAP_FREE( ld->ld_abandoned );
|
||||
ld->ld_abandoned = NULL;
|
||||
}
|
||||
#ifdef LDAP_R_COMPILE
|
||||
ldap_pvt_thread_mutex_unlock( &ld->ld_res_mutex );
|
||||
#endif
|
||||
@ -125,11 +130,6 @@ ldap_ld_free(
|
||||
ld->ld_referrals = NULL;
|
||||
}
|
||||
|
||||
if ( ld->ld_abandoned != NULL ) {
|
||||
LDAP_FREE( ld->ld_abandoned );
|
||||
ld->ld_abandoned = NULL;
|
||||
}
|
||||
|
||||
if ( ld->ld_selectinfo != NULL ) {
|
||||
ldap_free_select_info( ld->ld_selectinfo );
|
||||
ld->ld_selectinfo = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user