mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-27 01:59:38 -05:00
cleanup previous commit
This commit is contained in:
parent
467524ef92
commit
6956e3d483
1 changed files with 8 additions and 8 deletions
|
|
@ -424,18 +424,18 @@ entry_clean( Entry *e )
|
|||
e->e_private = NULL;
|
||||
|
||||
/* free DNs */
|
||||
if ( e->e_dn != NULL ) {
|
||||
free( e->e_dn );
|
||||
e->e_dn = NULL;
|
||||
if ( !BER_BVISNULL( &e->e_name ) ) {
|
||||
free( e->e_name.bv_val );
|
||||
BER_BVZERO( &e->e_name );
|
||||
}
|
||||
if ( e->e_ndn != NULL ) {
|
||||
free( e->e_ndn );
|
||||
e->e_ndn = NULL;
|
||||
if ( !BER_BVISNULL( &e->e_nname ) ) {
|
||||
free( e->e_nname.bv_val );
|
||||
BER_BVZERO( &e->e_nname );
|
||||
}
|
||||
|
||||
if ( e->e_bv.bv_val != NULL ) {
|
||||
if ( !BER_BVISNULL( &e->e_bv ) ) {
|
||||
free( e->e_bv.bv_val );
|
||||
e->e_bv.bv_val = NULL;
|
||||
BER_BVZERO( &e->e_bv );
|
||||
}
|
||||
|
||||
/* free attributes */
|
||||
|
|
|
|||
Loading…
Reference in a new issue