mirror of
https://github.com/php/php-src.git
synced 2026-04-11 10:03:18 +02:00
Fixed memory leak
This commit is contained in:
@@ -663,6 +663,7 @@ ZEND_API int zval_update_constant_ex(zval *p, void *arg, zend_class_entry *scope
|
||||
zend_ast_evaluate(&const_value, Z_ASTVAL_P(p), scope TSRMLS_CC);
|
||||
if (inline_change) {
|
||||
zend_ast_destroy(Z_ASTVAL_P(p));
|
||||
efree(Z_AST_P(p));
|
||||
}
|
||||
ZVAL_COPY_VALUE(p, &const_value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user