From: Jong Hyuk Choi Date: Tue, 31 Aug 2004 14:22:56 +0000 (+0000) Subject: use ch_malloc for normailzed values X-Git-Tag: OPENLDAP_REL_ENG_2_3_0ALPHA~588 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6baa9b1e2b76ea8995454952764ff9b9eefdab18;p=openldap use ch_malloc for normailzed values --- diff --git a/servers/slapd/schema_init.c b/servers/slapd/schema_init.c index b648d5b123..74319136b9 100644 --- a/servers/slapd/schema_init.c +++ b/servers/slapd/schema_init.c @@ -1636,7 +1636,7 @@ telephoneNumberNormalize( /* validator should have refused an empty string */ assert( val->bv_len ); - q = normalized->bv_val = slap_sl_malloc( val->bv_len + 1, ctx ); + q = normalized->bv_val = ch_malloc( val->bv_len + 1 ); for( p = val->bv_val; *p; p++ ) { if ( ! ( ASCII_SPACE( *p ) || *p == '-' )) { @@ -2045,7 +2045,7 @@ numericStringNormalize( assert( val->bv_len ); - normalized->bv_val = slap_sl_malloc( val->bv_len + 1, ctx ); + normalized->bv_val = ch_malloc( val->bv_len + 1 ); p = val->bv_val; q = normalized->bv_val; @@ -2672,7 +2672,7 @@ generalizedTimeNormalize( } len = sizeof("YYYYmmddHHMMSSZ")-1 + fraction.bv_len; - normalized->bv_val = slap_sl_malloc( len + 1, ctx ); + normalized->bv_val = ch_malloc( len + 1 ); if ( normalized->bv_val == NULL ) { return LBER_ERROR_MEMORY; }