com php-src: Fixed memory leak: ext/reflection/php_reflection .c
| From: | Dmitry Stogov | Date: | Sun, 02 Mar 2014 13:36:51 +0000 |
| Subject: | com php-src: Fixed memory leak: ext/reflection/php_reflection .c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-77816@lists.php.net to get a copy of this message | ||
Commit: 30c20084d78e7a3c02d1b74ebda0975624d5f9bd
Author: Xinchen Hui <laruence@gmail.com> Sun, 2 Mar 2014 21:36:51 +0800
Parents: 069c158c20439c8cce8cb5087ec9da5d7477e5c3
Branches: phpng
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=30c20084d78e7a3c02d1b74ebda0975624d5f9bd
Log:
Fixed memory leak
Changed paths:
M ext/reflection/php_reflection.c
Diff:
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c
index e19a866..1632392 100644
--- a/ext/reflection/php_reflection.c
+++ b/ext/reflection/php_reflection.c
@@ -5437,6 +5437,7 @@ ZEND_METHOD(reflection_extension, getDependencies)
dep->version ? " " : "",
dep->version ? dep->version : "");
add_assoc_stringl(return_value, dep->name, relation, len, 0);
+ efree(relation);
dep++;
}
}