com php-src: Fixed memory leak: ext/standard/streamsfuncs.c
| From: | Dmitry Stogov | Date: | Wed, 26 Feb 2014 08:33:27 +0000 |
| Subject: | com php-src: Fixed memory leak: ext/standard/streamsfuncs.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-77898@lists.php.net to get a copy of this message | ||
Commit: 95320f1f468f7576c3536f42d5c03e118e45be23
Author: Xinchen Hui <laruence@gmail.com> Wed, 26 Feb 2014 16:33:27 +0800
Parents: 4b6eb998da68795ca49dcf4c9f0f2fcd9f27c911
Branches: phpng
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=95320f1f468f7576c3536f42d5c03e118e45be23
Log:
Fixed memory leak
Changed paths:
M ext/standard/streamsfuncs.c
Diff:
diff --git a/ext/standard/streamsfuncs.c b/ext/standard/streamsfuncs.c
index 32f24c4..35664d9 100644
--- a/ext/standard/streamsfuncs.c
+++ b/ext/standard/streamsfuncs.c
@@ -1534,7 +1534,8 @@ PHP_FUNCTION(stream_resolve_include_path)
if (resolved_path) {
//??? RETURN_STRING(resolved_path, 0);
- RETURN_STRING(resolved_path);
+ RETVAL_STRING(resolved_path);
+ efree(resolved_path);
}
RETURN_FALSE;
}