From: Howard Chu Date: Fri, 25 Nov 2005 21:40:33 +0000 (+0000) Subject: ITS#4209 release entry when it exists. X-Git-Tag: OPENLDAP_REL_ENG_2_4_BP~689 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=72fee93e31040eaad445699e1e261c1180687acf;p=openldap ITS#4209 release entry when it exists. --- diff --git a/servers/slapd/overlays/accesslog.c b/servers/slapd/overlays/accesslog.c index 26bb076946..87a2aa7892 100644 --- a/servers/slapd/overlays/accesslog.c +++ b/servers/slapd/overlays/accesslog.c @@ -1235,7 +1235,9 @@ accesslog_db_open( rc = be_entry_get_rw( op, li->li_db->be_nsuffix, NULL, NULL, 0, &e ); - if ( !e ) { + if ( e ) { + be_entry_release_rw( op, e, 0 ); + } else { SlapReply rs = {REP_RESULT}; struct berval rdn, nrdn, attr; char *ptr;