mirror of
https://github.com/php/php-src.git
synced 2024-11-27 20:03:40 +08:00
fix memory leak
This commit is contained in:
parent
8f52bf6835
commit
123d8f782f
@ -2202,6 +2202,7 @@ void zend_do_declare_property(znode *var_name, znode *value TSRMLS_DC)
|
||||
if (CG(access_type) & ZEND_ACC_STATIC) {
|
||||
/* FIXME: Currently, ignores access type for static variables */
|
||||
zend_hash_update(CG(active_class_entry)->static_members, var_name->u.constant.value.str.val, var_name->u.constant.value.str.len+1, &property, sizeof(zval *), NULL);
|
||||
FREE_PNODE(var_name);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user