Fix Bug #67468 Segfault in highlight_file()/highlight_string() when pgsql.so module is loaded

str_efree() must be used in zend_highlight() and zend_indent() to free
string data assigned to a zval to account for interned strings.
This commit is contained in:
Andreas Ferber 2014-06-19 00:15:07 +02:00 committed by Ferenc Kovacs
parent f08a5bfadc
commit c5e6c2a5f5
2 changed files with 2 additions and 2 deletions

View File

@ -150,7 +150,7 @@ ZEND_API void zend_highlight(zend_syntax_highlighter_ini *syntax_highlighter_ini
case T_DOC_COMMENT:
break;
default:
efree(token.value.str.val);
str_efree(token.value.str.val);
break;
}
}

View File

@ -139,7 +139,7 @@ dflt_printout:
case T_WHITESPACE:
break;
default:
efree(token.value.str.val);
str_efree(token.value.str.val);
break;
}
}