summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>1999-04-30 23:32:03 +0000
committerAndi Gutmans <andi@php.net>1999-04-30 23:32:03 +0000
commit5dd7f27f0bcc6849e538e2eb051ed0953f609669 (patch)
tree5ebc7f5e5661b4050f06448aecdc6005a34390c7
parent202135bfac252d0c8a0880c8f3f0fac54e12be5c (diff)
downloadphp-git-5dd7f27f0bcc6849e538e2eb051ed0953f609669.tar.gz
- Free refcount when destroying the last class reference.
-rw-r--r--Zend/zend_opcode.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Zend/zend_opcode.c b/Zend/zend_opcode.c
index 1e113c500e..c1b93a9251 100644
--- a/Zend/zend_opcode.c
+++ b/Zend/zend_opcode.c
@@ -120,11 +120,13 @@ ZEND_API void destroy_zend_class(zend_class_entry *ce)
switch (ce->type) {
case ZEND_USER_CLASS:
efree(ce->name);
+ efree(ce->refcount);
zend_hash_destroy(&ce->function_table);
zend_hash_destroy(&ce->default_properties);
break;
case ZEND_INTERNAL_CLASS:
free(ce->name);
+ free(ce->refcount);
zend_hash_destroy(&ce->function_table);
zend_hash_destroy(&ce->default_properties);
break;