mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-27 10:09:43 -05:00
split entry_free in entry_clean ...
This commit is contained in:
parent
af8cb90ed8
commit
6b8fd66364
2 changed files with 8 additions and 1 deletions
|
|
@ -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 );
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 ));
|
||||
|
|
|
|||
Loading…
Reference in a new issue