]> git.sur5r.net Git - openldap/commitdiff
more on deadlock/dangling pointers
authorPierangelo Masarati <ando@openldap.org>
Wed, 20 Jul 2005 00:50:35 +0000 (00:50 +0000)
committerPierangelo Masarati <ando@openldap.org>
Wed, 20 Jul 2005 00:50:35 +0000 (00:50 +0000)
servers/slapd/back-monitor/search.c

index db3d6ab5be7a2823bf8bfa1305ed29e40662697c..591287d06cfc73777e2d4fe2c93b4bb44d903eb2 100644 (file)
@@ -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 );