mirror of
https://github.com/php/php-src.git
synced 2024-12-16 13:26:19 +08:00
This can not be true
This commit is contained in:
parent
06fcf94c45
commit
fc58025627
@ -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 ???
|
||||
|
Loading…
Reference in New Issue
Block a user