fix searchFilter double free (ITS#5043)

This commit is contained in:
Pierangelo Masarati 2007-07-12 22:22:31 +00:00
parent 2c41e611dc
commit ca7ad7f2e3

View File

@ -768,7 +768,9 @@ rwm_filter_map_rewrite(
case REWRITE_REGEXEC_OK:
if ( !BER_BVISNULL( fstr ) ) {
fstr->bv_len = strlen( fstr->bv_val );
ch_free( ftmp.bv_val );
if ( fstr->bv_val != ftmp.bv_val ) {
ch_free( ftmp.bv_val );
}
} else {
*fstr = ftmp;