From 62ee62c0b0e7968ecf12d6784843ac88618673ca Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 12 Jan 2011 22:48:30 +0000 Subject: [PATCH] More for prev commit --- servers/slapd/back-monitor/search.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/servers/slapd/back-monitor/search.c b/servers/slapd/back-monitor/search.c index cd9dc89773..a7aad3bd10 100644 --- a/servers/slapd/back-monitor/search.c +++ b/servers/slapd/back-monitor/search.c @@ -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 ) {