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

fix pre-allocated entry/attribute handling

parent c57782ad
No related branches found
No related tags found
No related merge requests found
...@@ -579,7 +579,7 @@ ldap_build_entry( ...@@ -579,7 +579,7 @@ ldap_build_entry(
"%s ldap_build_entry: " "%s ldap_build_entry: "
"slap_bv2undef_ad(%s): %s\n", "slap_bv2undef_ad(%s): %s\n",
op->o_log_prefix, a.bv_val, text ); op->o_log_prefix, a.bv_val, text );
ch_free( attr ); attr_free( attr );
continue; continue;
} }
} }
...@@ -602,7 +602,7 @@ ldap_build_entry( ...@@ -602,7 +602,7 @@ ldap_build_entry(
*/ */
( void )ber_scanf( &ber, "x" /* [W] */ ); ( void )ber_scanf( &ber, "x" /* [W] */ );
ch_free( attr ); attr_free( attr );
continue; continue;
} }
...@@ -683,7 +683,7 @@ ldap_build_entry( ...@@ -683,7 +683,7 @@ ldap_build_entry(
if ( rc != LDAP_SUCCESS ) { if ( rc != LDAP_SUCCESS ) {
BER_BVZERO( &attr->a_nvals[i] ); BER_BVZERO( &attr->a_nvals[i] );
ch_free( attr ); attr_free( attr );
goto next_attr; goto next_attr;
} }
} }
......
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