version 1.147.2.84, 2011/01/06 21:59:56
|
version 1.147.2.85, 2011/01/11 19:19:14
|
Line 785 syncprov_free_syncop( syncops *so )
|
Line 785 syncprov_free_syncop( syncops *so )
|
GroupAssertion *ga, *gnext; |
GroupAssertion *ga, *gnext; |
|
|
ldap_pvt_thread_mutex_lock( &so->s_mutex ); |
ldap_pvt_thread_mutex_lock( &so->s_mutex ); |
if ( --so->s_inuse > 0 ) { |
/* already being freed, or still in use */ |
|
if ( !so->s_inuse || --so->s_inuse > 0 ) { |
ldap_pvt_thread_mutex_unlock( &so->s_mutex ); |
ldap_pvt_thread_mutex_unlock( &so->s_mutex ); |
return; |
return; |
} |
} |