From 214ad8c9879b4af1f1a730a4cd492453f19c8665 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 19 Jan 2012 15:55:54 -0800 Subject: [PATCH] ITS#7127 fix syncrepl_config reference to freed memory --- servers/slapd/syncrepl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/servers/slapd/syncrepl.c b/servers/slapd/syncrepl.c index f1d543fce4..1a074ed41c 100644 --- a/servers/slapd/syncrepl.c +++ b/servers/slapd/syncrepl.c @@ -5512,13 +5512,13 @@ syncrepl_config( ConfigArgs *c ) ldap_pvt_runqueue_stoptask( &slapd_rq, re ); isrunning = 1; } - ldap_pvt_runqueue_remove( &slapd_rq, re ); - ldap_pvt_thread_mutex_unlock( &slapd_rq.rq_mutex ); - if ( ldap_pvt_thread_pool_retract( &connection_pool, re->routine, re ) > 0 ) isrunning = 0; + ldap_pvt_runqueue_remove( &slapd_rq, re ); + ldap_pvt_thread_mutex_unlock( &slapd_rq.rq_mutex ); + ldap_pvt_thread_mutex_unlock( &si->si_mutex ); } } -- 2.39.5