mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
fix pre-allocated entry/attribute handling
This commit is contained in:
parent
922629fd2e
commit
c57782ad66
@ -1476,6 +1476,7 @@ accesslog_db_open(
|
||||
|
||||
if ( e ) {
|
||||
be_entry_release_rw( op, e, 0 );
|
||||
|
||||
} else {
|
||||
SlapReply rs = {REP_RESULT};
|
||||
struct berval rdn, nrdn, attr;
|
||||
@ -1535,8 +1536,9 @@ accesslog_db_open(
|
||||
SLAP_DBFLAGS( op->o_bd ) |= SLAP_DBFLAG_NOLASTMOD;
|
||||
rc = op->o_bd->be_add( op, &rs );
|
||||
SLAP_DBFLAGS( op->o_bd ) ^= SLAP_DBFLAG_NOLASTMOD;
|
||||
attrs_free( e->e_attrs );
|
||||
ch_free( e );
|
||||
BER_BVZERO( &e->e_name );
|
||||
BER_BVZERO( &e->e_nname );
|
||||
entry_free( e );
|
||||
}
|
||||
ldap_pvt_thread_pool_context_reset( thrctx );
|
||||
return rc;
|
||||
|
Loading…
Reference in New Issue
Block a user