ITS#6438 check for redundant syncops_free() ?

This commit is contained in:
Howard Chu 2010-01-05 03:50:10 +00:00
parent 40017c3874
commit 0c195fc013

View file

@ -783,7 +783,8 @@ syncprov_free_syncop( syncops *so )
GroupAssertion *ga, *gnext;
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 );
return;
}