Commit 1543d3b9 authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

fix previous commit :)

parent 3b38676d
...@@ -873,8 +873,8 @@ uniqueMemberNormalize( ...@@ -873,8 +873,8 @@ uniqueMemberNormalize(
assert( SLAP_MR_IS_VALUE_OF_SYNTAX( usage )); assert( SLAP_MR_IS_VALUE_OF_SYNTAX( usage ));
ber_dupbv( &out, val ); ber_dupbv_x( &out, val, ctx );
if( BER_BVISEMPTY( &out ) ) { if ( BER_BVISEMPTY( &out ) ) {
*normalized = out; *normalized = out;
} else { } else {
...@@ -901,7 +901,7 @@ uniqueMemberNormalize( ...@@ -901,7 +901,7 @@ uniqueMemberNormalize(
rc = dnNormalize( 0, NULL, NULL, &out, normalized, ctx ); rc = dnNormalize( 0, NULL, NULL, &out, normalized, ctx );
if( rc != LDAP_SUCCESS ) { if( rc != LDAP_SUCCESS ) {
free( out.bv_val ); slap_sl_free( out.bv_val, ctx );
return LDAP_INVALID_SYNTAX; return LDAP_INVALID_SYNTAX;
} }
...@@ -921,7 +921,7 @@ uniqueMemberNormalize( ...@@ -921,7 +921,7 @@ uniqueMemberNormalize(
normalized->bv_val[normalized->bv_len] = '\0'; normalized->bv_val[normalized->bv_len] = '\0';
} }
free( out.bv_val ); slap_sl_free( out.bv_val, ctx );
} }
return LDAP_SUCCESS; return LDAP_SUCCESS;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment