From 77ad940c10f32cb6c6f68944da2049a86d850bf4 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Wed, 20 Jul 2005 00:50:35 +0000 Subject: [PATCH] more on deadlock/dangling pointers --- servers/slapd/back-monitor/search.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/servers/slapd/back-monitor/search.c b/servers/slapd/back-monitor/search.c index db3d6ab5be..591287d06c 100644 --- a/servers/slapd/back-monitor/search.c +++ b/servers/slapd/back-monitor/search.c @@ -125,7 +125,7 @@ monitor_send_children( if ( rc ) { /* FIXME: may leak generated children */ if ( nonvolatile == 0 ) { - for ( e_tmp = e; e_tmp != NULL; ) { + for ( ; e_tmp != NULL; ) { mp = ( monitor_entry_t * )e_tmp->e_private; e = e_tmp; e_tmp = mp->mp_next; @@ -135,9 +135,6 @@ monitor_send_children( break; } } - - } else { - monitor_cache_release( mi, e ); } return( rc ); -- 2.39.5