From: Howard Chu Date: Sat, 15 Dec 2001 06:25:47 +0000 (+0000) Subject: Do a regular entry_free on entries from do_add X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~653 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ce81cef289efb9b044df38a184f9196fc9765a3e;p=openldap Do a regular entry_free on entries from do_add --- 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 ); }