From 72fee93e31040eaad445699e1e261c1180687acf Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 25 Nov 2005 21:40:33 +0000 Subject: [PATCH] ITS#4209 release entry when it exists. --- servers/slapd/overlays/accesslog.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.39.5