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

cleanup previous commit

parent 467524ef
No related branches found
No related tags found
No related merge requests found
......@@ -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 */
......
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