From 433c7923c5402d6d5cc3020a4eb9c642b71183c5 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Sun, 7 Aug 2005 20:04:47 +0000 Subject: [PATCH] cleanup candidate list in case of abandon --- servers/slapd/back-sql/search.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/servers/slapd/back-sql/search.c b/servers/slapd/back-sql/search.c index f6837cca04..4c7326a8a0 100644 --- a/servers/slapd/back-sql/search.c +++ b/servers/slapd/back-sql/search.c @@ -2239,6 +2239,12 @@ send_results:; send_ldap_result( op, rs ); } + /* cleanup in case of abandon */ + for ( ; eid != NULL; + eid = backsql_free_entryID( op, + eid, eid == &bsi.bsi_base_id ? 0 : 1 ) ) + ; + backsql_entry_clean( op, &base_entry ); /* in case we got here accidentally */ -- 2.39.5