From: Xinchen Hui Date: Thu, 2 Jul 2015 03:04:24 +0000 (+0800) Subject: This can not be true X-Git-Tag: php-7.1.0alpha3~25^2~66 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fc58025627ed75734125494a6e2417f2190de213;p=php This can not be true --- 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 ???