mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-28 18:49:34 -05:00
ITS#7292 more syncprov leaks
This commit is contained in:
parent
9e3af2356b
commit
96876a171a
1 changed files with 7 additions and 5 deletions
|
|
@ -918,14 +918,16 @@ syncprov_qplay( Operation *op, syncops *so )
|
|||
|
||||
do {
|
||||
ldap_pvt_thread_mutex_lock( &so->s_mutex );
|
||||
/* Exit loop with mutex held */
|
||||
if ( so->s_op->o_abandon )
|
||||
break;
|
||||
sr = so->s_res;
|
||||
if ( sr )
|
||||
so->s_res = sr->s_next;
|
||||
/* Exit loop with mutex held */
|
||||
if ( !sr )
|
||||
break;
|
||||
so->s_res = sr->s_next;
|
||||
if ( !so->s_res )
|
||||
so->s_restail = NULL;
|
||||
/* Exit loop with mutex held */
|
||||
if ( !sr || so->s_op->o_abandon )
|
||||
break;
|
||||
ldap_pvt_thread_mutex_unlock( &so->s_mutex );
|
||||
|
||||
if ( sr->s_mode == LDAP_SYNC_NEW_COOKIE ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue