From: Pierangelo Masarati Date: Sun, 7 Aug 2005 20:04:47 +0000 (+0000) Subject: cleanup candidate list in case of abandon X-Git-Tag: OPENLDAP_AC_BP~67 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=433c7923c5402d6d5cc3020a4eb9c642b71183c5;p=openldap cleanup candidate list in case of abandon --- 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 */