mirror of
https://github.com/php/php-src.git
synced 2024-12-05 07:46:06 +08:00
Avoid, most offten unnecessary, memory load.
This commit is contained in:
parent
c3717d9aec
commit
57e4be9cef
@ -373,8 +373,6 @@ void zend_class_add_ref(zval *zv)
|
||||
|
||||
ZEND_API void destroy_op_array(zend_op_array *op_array)
|
||||
{
|
||||
zval *literal = op_array->literals;
|
||||
zval *end;
|
||||
uint32_t i;
|
||||
|
||||
if (op_array->static_variables &&
|
||||
@ -404,8 +402,9 @@ ZEND_API void destroy_op_array(zend_op_array *op_array)
|
||||
efree(op_array->vars);
|
||||
}
|
||||
|
||||
if (literal) {
|
||||
end = literal + op_array->last_literal;
|
||||
if (op_array->literals) {
|
||||
zval *literal = op_array->literals;
|
||||
zval *end = literal + op_array->last_literal;
|
||||
while (literal < end) {
|
||||
zval_ptr_dtor_nogc(literal);
|
||||
literal++;
|
||||
|
Loading…
Reference in New Issue
Block a user