From: Howard Chu Date: Fri, 4 Aug 2017 19:58:07 +0000 (+0100) Subject: ITS#8690 one more time X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a9f462d615697bc28058ee5c541c4d3e7920f205;p=openldap ITS#8690 one more time --- diff --git a/servers/slapd/overlays/syncprov.c b/servers/slapd/overlays/syncprov.c index 4fff71f212..e2f79f03a1 100644 --- a/servers/slapd/overlays/syncprov.c +++ b/servers/slapd/overlays/syncprov.c @@ -1973,14 +1973,13 @@ syncprov_op_response( Operation *op, SlapReply *rs ) /* for each match in opc->smatches: * send DELETE msg */ - ldap_pvt_thread_mutex_lock( &si->si_ops_mutex ); for ( sm = opc->smatches; sm; sm=sm->sm_next ) { if ( sm->sm_op->s_op->o_abandon ) continue; syncprov_qresp( opc, sm->sm_op, LDAP_SYNC_DELETE ); } - free_resinfo( &opc->ssres ); - ldap_pvt_thread_mutex_unlock( &si->si_ops_mutex ); + if ( opc->ssres.s_info ) + free_resinfo( &opc->ssres ); break; } }