From: Howard Chu Date: Sun, 6 Jan 2002 06:21:11 +0000 (+0000) Subject: Don't need to malloc/free ma_rule_text X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~253 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e75627a7a77f8e5002b76293d5f43a7a59a90018;p=openldap Don't need to malloc/free ma_rule_text --- diff --git a/servers/slapd/mra.c b/servers/slapd/mra.c index 98bf139ddb..87b4a47dda 100644 --- a/servers/slapd/mra.c +++ b/servers/slapd/mra.c @@ -21,7 +21,9 @@ mra_free( int freeit ) { +#if 0 /* no longer a malloc'd string */ ch_free( mra->ma_rule_text.bv_val ); +#endif ch_free( mra->ma_value.bv_val ); if ( freeit ) { ch_free( (char *) mra ); @@ -64,7 +66,7 @@ get_mra( } if ( tag == LDAP_FILTER_EXT_OID ) { - rc = ber_scanf( ber, "o", &ma->ma_rule_text ); + rc = ber_scanf( ber, "m", &ma->ma_rule_text ); if ( rc == LBER_ERROR ) { #ifdef NEW_LOGGING LDAP_LOG(( "operation", LDAP_LEVEL_ERR,