mirror of
https://github.com/php/php-src.git
synced 2025-01-25 21:23:45 +08:00
- Fixed memleak in fscanf().
This commit is contained in:
parent
a50e9acd8e
commit
39aa3a5d98
@ -1518,6 +1518,7 @@ PHP_FUNCTION(fscanf)
|
||||
|
||||
buf = php_stream_get_line((php_stream *) what, NULL, 0, &len);
|
||||
if (buf == NULL) {
|
||||
efree(args);
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user