split entry_free in entry_clean ...

This commit is contained in:
Pierangelo Masarati 2004-08-20 12:01:15 +00:00
parent af8cb90ed8
commit 6b8fd66364
2 changed files with 8 additions and 1 deletions

View file

@ -414,7 +414,7 @@ entry2str(
}
void
entry_free( Entry *e )
entry_clean( Entry *e )
{
/* free an entry structure */
assert( e != NULL );
@ -441,6 +441,12 @@ entry_free( Entry *e )
/* free attributes */
attrs_free( e->e_attrs );
e->e_attrs = NULL;
}
void
entry_free( Entry *e )
{
entry_clean( e );
free( e );
}

View file

@ -529,6 +529,7 @@ LDAP_SLAPD_F (void) entry_flatsize LDAP_P((
LDAP_SLAPD_F (int) entry_decode LDAP_P(( struct berval *bv, Entry **e ));
LDAP_SLAPD_F (int) entry_encode LDAP_P(( Entry *e, struct berval *bv ));
LDAP_SLAPD_F (void) entry_clean LDAP_P(( Entry *e ));
LDAP_SLAPD_F (void) entry_free LDAP_P(( Entry *e ));
LDAP_SLAPD_F (int) entry_cmp LDAP_P(( Entry *a, Entry *b ));
LDAP_SLAPD_F (int) entry_dn_cmp LDAP_P(( const void *v_a, const void *v_b ));