mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-27 18:19:52 -05:00
ITS#6438 check for redundant syncops_free() ?
This commit is contained in:
parent
40017c3874
commit
0c195fc013
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue