com php-src: This can not be true: ext/standard/file.c
| From: | Xinchen Hui | Date: | Thu, 02 Jul 2015 03:04:24 +0000 |
| Subject: | com php-src: This can not be true: ext/standard/file.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-87680@lists.php.net to get a copy of this message | ||
Commit: fc58025627ed75734125494a6e2417f2190de213
Author: Xinchen Hui <laruence@php.net> Thu, 2 Jul 2015 11:04:24 +0800
Parents: 06fcf94c452eca1260a4ae5d391ffdd47ee6478c
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=fc58025627ed75734125494a6e2417f2190de213
Log:
This can not be true
Changed paths:
M ext/standard/file.c
Diff:
diff --git a/ext/standard/file.c b/ext/standard/file.c
index 7441831..3087144 100644
--- a/ext/standard/file.c
+++ b/ext/standard/file.c
@@ -1012,9 +1012,6 @@ PHPAPI PHP_FUNCTION(fgets)
/* ask streams to give us a buffer of an appropriate size */
buf = php_stream_get_line(stream, NULL, 0, &line_len);
if (buf == NULL) {
- if (buf) {
- efree(buf);
- }
RETURN_FALSE;
}
// TODO: avoid reallocation ???