]> git.sur5r.net Git - openldap/commitdiff
Do a regular entry_free on entries from do_add
authorHoward Chu <hyc@openldap.org>
Sat, 15 Dec 2001 06:25:47 +0000 (06:25 +0000)
committerHoward Chu <hyc@openldap.org>
Sat, 15 Dec 2001 06:25:47 +0000 (06:25 +0000)
servers/slapd/back-bdb/id2entry.c

index e2db8cd065b6834c8ea176f94eced6271a77a08a..4bd67d135ad48ae067a8178021f72565ad61b06c 100644 (file)
@@ -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 );
 }