version 1.307, 2009/11/23 21:17:25
|
version 1.308, 2010/01/05 02:50:10
|
Line 1
|
Line 1
|
/* $OpenLDAP: pkg/ldap/servers/slapd/overlays/syncprov.c,v 1.306 2009/11/23 21:13:42 hyc Exp $ */ |
/* $OpenLDAP: pkg/ldap/servers/slapd/overlays/syncprov.c,v 1.307 2009/11/23 21:17:25 hyc Exp $ */ |
/* syncprov.c - syncrepl provider */ |
/* syncprov.c - syncrepl provider */ |
/* This work is part of OpenLDAP Software <http://www.openldap.org/>. |
/* This work is part of OpenLDAP Software <http://www.openldap.org/>. |
* |
* |
Line 783 syncprov_free_syncop( syncops *so )
|
Line 783 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; |
} |
} |