From ce81cef289efb9b044df38a184f9196fc9765a3e Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sat, 15 Dec 2001 06:25:47 +0000 Subject: [PATCH] Do a regular entry_free on entries from do_add --- servers/slapd/back-bdb/id2entry.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/servers/slapd/back-bdb/id2entry.c b/servers/slapd/back-bdb/id2entry.c index e2db8cd065..4bd67d135a 100644 --- a/servers/slapd/back-bdb/id2entry.c +++ b/servers/slapd/back-bdb/id2entry.c @@ -170,5 +170,8 @@ int bdb_entry_release( Entry *e, int rw ) { - return bdb_entry_return( be, e ); + if (o && o->o_tag == LDAP_REQ_ADD) + entry_free(e); + else + return bdb_entry_return( be, e ); } -- 2.39.5