com php-src: Fixed invalid free: ext/reflection/php_reflectio n.c
| From: | Dmitry Stogov | Date: | Sun, 02 Mar 2014 13:44:17 +0000 |
| Subject: | com php-src: Fixed invalid free: ext/reflection/php_reflectio n.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-77826@lists.php.net to get a copy of this message | ||
Commit: 18363f42b2bb915009a052e330848ba70ead506b
Author: Xinchen Hui <laruence@gmail.com> Sun, 2 Mar 2014 21:44:17 +0800
Parents: 35742a74e230a3ccee2badc43de7ee5a348fe9cb
Branches: phpng
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=18363f42b2bb915009a052e330848ba70ead506b
Log:
Fixed invalid free
Changed paths:
M ext/reflection/php_reflection.c
Diff:
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c
index 8111de9...98d90a9 100644
--- a/ext/reflection/php_reflection.c
+++ b/ext/reflection/php_reflection.c
@@ -304,7 +304,7 @@ static void reflection_free_objects_storage(zend_object *object TSRMLS_DC) /* {{
break;
case REF_TYPE_DYNAMIC_PROPERTY:
prop_reference = (property_reference*)intern->ptr;
- efree((char*)prop_reference->prop.name);
+ STR_RELEASE(prop_reference->prop.name);
efree(intern->ptr);
break;
case REF_TYPE_OTHER: