From f4b832d277390f1e20e38ed275f26867c7c6537c Mon Sep 17 00:00:00 2001 From: Andi Gutmans Date: Thu, 13 Dec 2001 16:55:04 +0000 Subject: - Fix crash bug in startup code. - Start work on being able to reference global and local scope --- Zend/zend_opcode.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Zend/zend_opcode.c') 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; -- cgit v1.2.1