Skip to content
Snippets Groups Projects
Commit 96876a17 authored by Howard Chu's avatar Howard Chu
Browse files

ITS#7292 more syncprov leaks

parent 9e3af235
No related branches found
No related tags found
No related merge requests found
......@@ -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;
if ( !so->s_res )
so->s_restail = NULL;
/* Exit loop with mutex held */
if ( !sr || so->s_op->o_abandon )
if ( !sr )
break;
so->s_res = sr->s_next;
if ( !so->s_res )
so->s_restail = NULL;
ldap_pvt_thread_mutex_unlock( &so->s_mutex );
if ( sr->s_mode == LDAP_SYNC_NEW_COOKIE ) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment