mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
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:
parent
f08a5bfadc
commit
c5e6c2a5f5
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -139,7 +139,7 @@ dflt_printout:
|
||||
case T_WHITESPACE:
|
||||
break;
|
||||
default:
|
||||
efree(token.value.str.val);
|
||||
str_efree(token.value.str.val);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user