From a9f462d615697bc28058ee5c541c4d3e7920f205 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 4 Aug 2017 20:58:07 +0100 Subject: [PATCH] ITS#8690 one more time --- servers/slapd/overlays/syncprov.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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; } } -- 2.39.5