]> git.sur5r.net Git - openldap/commitdiff
More for prev commit
authorHoward Chu <hyc@openldap.org>
Wed, 12 Jan 2011 22:48:30 +0000 (22:48 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 12 Jan 2011 22:48:30 +0000 (22:48 +0000)
servers/slapd/back-monitor/search.c

index cd9dc89773e4b7c3066c55806f39770d84384251..a7aad3bd1049ad15bc1c775f2c413accfd9d2e02 100644 (file)
@@ -103,8 +103,10 @@ monitor_send_children(
                        rs->sr_flags = 0;
                        rc = send_search_entry( op, rs );
                        rs->sr_entry = NULL;
-                       if ( rc )
+                       if ( rc ) {
+                               monitor_cache_release( mi, e );
                                goto freeout;
+                       }
                }
 
                if ( sub ) {