summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 ???