diff options
author | Johannes Schlüter <johannes@php.net> | 2012-12-10 13:35:27 +0100 |
---|---|---|
committer | Johannes Schlüter <johannes@php.net> | 2012-12-10 13:35:27 +0100 |
commit | a2cf4f1932fab6adced6a0b72a605f9ae0bd0b8c (patch) | |
tree | 482f5289f15619508ff3efe4704aa54c4bfefaca /Zend/zend_API.c | |
parent | 795e3f1c0fa3a41cd933cc3ab3cd1867bbc7b817 (diff) | |
parent | ad553a7af237818f5d7690e97a03ffe66ec9ab37 (diff) | |
download | php-git-a2cf4f1932fab6adced6a0b72a605f9ae0bd0b8c.tar.gz |
Merge branch 'PHP-5.3' of git.php.net:/php-src into PHP-5.3
Diffstat (limited to 'Zend/zend_API.c')
-rw-r--r-- | Zend/zend_API.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Zend/zend_API.c b/Zend/zend_API.c index c1b501b0b7..df11bdbe8f 100644 --- a/Zend/zend_API.c +++ b/Zend/zend_API.c @@ -3472,6 +3472,8 @@ ZEND_API int zend_update_static_property(zend_class_entry *scope, char *name, in (*property)->value = value->value; if (Z_REFCOUNT_P(value) > 0) { zval_copy_ctor(*property); + } else { + efree(value); } } else { zval *garbage = *property; |