diff options
| author | Stanislav Malyshev <stas@php.net> | 2003-01-29 14:25:53 +0000 |
|---|---|---|
| committer | Stanislav Malyshev <stas@php.net> | 2003-01-29 14:25:53 +0000 |
| commit | 123d8f782fb20e081548302c76b6bbf97f0f0cd7 (patch) | |
| tree | 5952e2735d7f522caad19c412b65496ea928265b | |
| parent | 8f52bf68354fe45478014255089cdf89ff643aee (diff) | |
| download | php-git-123d8f782fb20e081548302c76b6bbf97f0f0cd7.tar.gz | |
fix memory leak
| -rw-r--r-- | Zend/zend_compile.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index d975c5dbbf..4e03842089 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -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; } |
