com php-src: Fixed improper deallocation: Zend/zend_opcode. c
| From: | Dmitry Stogov | Date: | Fri, 21 Feb 2014 20:20:36 +0000 |
| Subject: | com php-src: Fixed improper deallocation: Zend/zend_opcode. c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-78027@lists.php.net to get a copy of this message | ||
Commit: 598a51844ca5eb391e7004de6f095dd594a578ea
Author: Dmitry Stogov <dmitry@zend.com> Sat, 22 Feb 2014 00:20:36 +0400
Parents: d149228b696b1692c682a721aa03825d33aecab8
Branches: phpng
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=598a51844ca5eb391e7004de6f095dd594a578ea
Log:
Fixed improper deallocation
Changed paths:
M Zend/zend_opcode.c
Diff:
diff --git a/Zend/zend_opcode.c b/Zend/zend_opcode.c
index 4e25200..f54bcb2 100644
--- a/Zend/zend_opcode.c
+++ b/Zend/zend_opcode.c
@@ -306,7 +306,7 @@ ZEND_API void destroy_zend_class(zval *zv)
efree(ce->interfaces);
}
if (ce->info.user.doc_comment) {
- efree((char*)ce->info.user.doc_comment);
+ STR_RELEASE(ce->info.user.doc_comment);
}
_destroy_zend_class_traits_info(ce);
@@ -392,10 +392,10 @@ ZEND_API void destroy_op_array(zend_op_array *op_array TSRMLS_DC)
efree(op_array->opcodes);
if (op_array->function_name) {
- efree((char*)op_array->function_name);
+ STR_RELEASE(op_array->function_name);
}
if (op_array->doc_comment) {
- efree((char*)op_array->doc_comment);
+ STR_RELEASE(op_array->doc_comment);
}
if (op_array->brk_cont_array) {
efree(op_array->brk_cont_array);