diff options
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; |