From 1543d3b95bdac238c831a632405b953fea10a2f8 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Thu, 13 May 2004 22:19:16 +0000 Subject: [PATCH] fix previous commit :) --- servers/slapd/schema_init.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/servers/slapd/schema_init.c b/servers/slapd/schema_init.c index 717502b403..88cda29eef 100644 --- a/servers/slapd/schema_init.c +++ b/servers/slapd/schema_init.c @@ -873,8 +873,8 @@ uniqueMemberNormalize( assert( SLAP_MR_IS_VALUE_OF_SYNTAX( usage )); - ber_dupbv( &out, val ); - if( BER_BVISEMPTY( &out ) ) { + ber_dupbv_x( &out, val, ctx ); + if ( BER_BVISEMPTY( &out ) ) { *normalized = out; } else { @@ -901,7 +901,7 @@ uniqueMemberNormalize( rc = dnNormalize( 0, NULL, NULL, &out, normalized, ctx ); if( rc != LDAP_SUCCESS ) { - free( out.bv_val ); + slap_sl_free( out.bv_val, ctx ); return LDAP_INVALID_SYNTAX; } @@ -921,7 +921,7 @@ uniqueMemberNormalize( normalized->bv_val[normalized->bv_len] = '\0'; } - free( out.bv_val ); + slap_sl_free( out.bv_val, ctx ); } return LDAP_SUCCESS; -- 2.39.5