summaryrefslogtreecommitdiff
path: root/Zend/zend_API.c
diff options
context:
space:
mode:
authorXinchen Hui <laruence@php.net>2012-12-10 20:29:51 +0800
committerXinchen Hui <laruence@php.net>2012-12-10 20:29:51 +0800
commit3d86e6d881a5f425c3b37a85ea7f1eb5acd12b18 (patch)
tree8432c1a1096d86baa517cf9612a3b54fe8d755b9 /Zend/zend_API.c
parent8b8fb649dc8ca29e493f6342b87d1cc8acfb9d03 (diff)
downloadphp-git-3d86e6d881a5f425c3b37a85ea7f1eb5acd12b18.tar.gz
Fixed bug #63726 (Memleak with static properties and internal/user classes)
No test scripts provided (will try to find one)
Diffstat (limited to 'Zend/zend_API.c')
-rw-r--r--Zend/zend_API.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Zend/zend_API.c b/Zend/zend_API.c
index c3d62c2729..6dadd4d060 100644
--- a/Zend/zend_API.c
+++ b/Zend/zend_API.c
@@ -3708,6 +3708,8 @@ ZEND_API int zend_update_static_property(zend_class_entry *scope, const char *na
(*property)->value = value->value;
if (Z_REFCOUNT_P(value) > 0) {
zval_copy_ctor(*property);
+ } else {
+ efree(value);
}
} else {
zval *garbage = *property;