diff options
author | Andi Gutmans <andi@php.net> | 2001-12-13 16:55:04 +0000 |
---|---|---|
committer | Andi Gutmans <andi@php.net> | 2001-12-13 16:55:04 +0000 |
commit | f4b832d277390f1e20e38ed275f26867c7c6537c (patch) | |
tree | 91aac94c57214300836ce189a1d565493adf77b7 /Zend/zend_opcode.c | |
parent | c55f8b96c9477c21b2d5033050d386a3d5a6807c (diff) | |
download | php-git-f4b832d277390f1e20e38ed275f26867c7c6537c.tar.gz |
- Fix crash bug in startup code.
- Start work on being able to reference global and local scope
Diffstat (limited to 'Zend/zend_opcode.c')
-rw-r--r-- | Zend/zend_opcode.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Zend/zend_opcode.c b/Zend/zend_opcode.c index edefcafa02..9bc95b6398 100644 --- a/Zend/zend_opcode.c +++ b/Zend/zend_opcode.c @@ -117,7 +117,8 @@ ZEND_API void destroy_zend_class(zend_class_entry *ce) efree(ce->refcount); zend_hash_destroy(&ce->function_table); zend_hash_destroy(&ce->default_properties); - zend_hash_destroy(&ce->static_members); + zend_hash_destroy(ce->static_members); + efree(ce->static_members); zend_hash_destroy(&ce->constants_table); zend_hash_destroy(&ce->class_table); break; @@ -126,7 +127,8 @@ ZEND_API void destroy_zend_class(zend_class_entry *ce) free(ce->refcount); zend_hash_destroy(&ce->function_table); zend_hash_destroy(&ce->default_properties); - zend_hash_destroy(&ce->static_members); + zend_hash_destroy(ce->static_members); + free(ce->static_members); zend_hash_destroy(&ce->constants_table); zend_hash_destroy(&ce->class_table); break; |