Skip to content
Snippets Groups Projects
Commit 6b8fd663 authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

split entry_free in entry_clean ...

parent af8cb90e
No related branches found
No related tags found
No related merge requests found
......@@ -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 ));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment