Skip to content
Snippets Groups Projects
Commit ca7ad7f2 authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

fix searchFilter double free (ITS#5043)

parent 2c41e611
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment