ld_abandoned must be protected by ld_res_mutex

This commit is contained in:
Pierangelo Masarati 2006-04-01 00:30:07 +00:00
parent 7cba7d0b39
commit bf860f0596

View File

@ -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;