From fc58025627ed75734125494a6e2417f2190de213 Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Thu, 2 Jul 2015 11:04:24 +0800 Subject: [PATCH] This can not be true --- ext/standard/file.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/ext/standard/file.c b/ext/standard/file.c index 7441831e025..3087144d447 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 ???