summaryrefslogtreecommitdiff
path: root/ext/standard/file.c
diff options
context:
space:
mode:
authorXinchen Hui <laruence@php.net>2015-07-02 11:04:24 +0800
committerXinchen Hui <laruence@php.net>2015-07-02 11:04:24 +0800
commitfc58025627ed75734125494a6e2417f2190de213 (patch)
tree3b4fd5f6be68378ad9e6c8e4cdee9d2f83aaa162 /ext/standard/file.c
parent06fcf94c452eca1260a4ae5d391ffdd47ee6478c (diff)
downloadphp-git-fc58025627ed75734125494a6e2417f2190de213.tar.gz
This can not be true
Diffstat (limited to 'ext/standard/file.c')
-rw-r--r--ext/standard/file.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/ext/standard/file.c b/ext/standard/file.c
index 7441831e02..3087144d44 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 ???