diff options
author | Dmitry Stogov <dmitry@zend.com> | 2014-04-01 13:57:23 +0400 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2014-04-01 13:57:23 +0400 |
commit | 98ca90c91095d13bad7e9f17d89c3fc0abdbc4be (patch) | |
tree | 510f4de92b6eab5671c221541ff4a77980cd3455 /Zend/zend_opcode.c | |
parent | 0da12b9273e4cb56be9b31f2e026bda1b9610146 (diff) | |
download | php-git-98ca90c91095d13bad7e9f17d89c3fc0abdbc4be.tar.gz |
Fixed char*/zend_string* mess
Diffstat (limited to 'Zend/zend_opcode.c')
-rw-r--r-- | Zend/zend_opcode.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Zend/zend_opcode.c b/Zend/zend_opcode.c index 08108d283f..7f339603e4 100644 --- a/Zend/zend_opcode.c +++ b/Zend/zend_opcode.c @@ -242,16 +242,16 @@ void _destroy_zend_class_traits_info(zend_class_entry *ce) while (ce->trait_aliases[i]) { if (ce->trait_aliases[i]->trait_method) { if (ce->trait_aliases[i]->trait_method->method_name) { - efree((char*)ce->trait_aliases[i]->trait_method->method_name); + STR_RELEASE(ce->trait_aliases[i]->trait_method->method_name); } if (ce->trait_aliases[i]->trait_method->class_name) { - efree((char*)ce->trait_aliases[i]->trait_method->class_name); + STR_RELEASE(ce->trait_aliases[i]->trait_method->class_name); } efree(ce->trait_aliases[i]->trait_method); } if (ce->trait_aliases[i]->alias) { - efree((char*)ce->trait_aliases[i]->alias); + STR_RELEASE(ce->trait_aliases[i]->alias); } efree(ce->trait_aliases[i]); @@ -265,8 +265,8 @@ void _destroy_zend_class_traits_info(zend_class_entry *ce) size_t i = 0; while (ce->trait_precedences[i]) { - efree((char*)ce->trait_precedences[i]->trait_method->method_name); - efree((char*)ce->trait_precedences[i]->trait_method->class_name); + STR_RELEASE(ce->trait_precedences[i]->trait_method->method_name); + STR_RELEASE(ce->trait_precedences[i]->trait_method->class_name); efree(ce->trait_precedences[i]->trait_method); if (ce->trait_precedences[i]->exclude_from_classes) { |