From: Pierangelo Masarati Date: Fri, 20 Aug 2004 12:01:15 +0000 (+0000) Subject: split entry_free in entry_clean ... X-Git-Tag: OPENLDAP_REL_ENG_2_3_0ALPHA~685 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6b8fd663647eeb79c735aca8d0fba31c012f2c4c;p=openldap split entry_free in entry_clean ... --- diff --git a/servers/slapd/entry.c b/servers/slapd/entry.c index 71d19e6120..43269c14ff 100644 --- a/servers/slapd/entry.c +++ b/servers/slapd/entry.c @@ -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 ); } diff --git a/servers/slapd/proto-slap.h b/servers/slapd/proto-slap.h index acd8e3ed9e..8f398a7d43 100644 --- a/servers/slapd/proto-slap.h +++ b/servers/slapd/proto-slap.h @@ -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 ));