mirror of
https://github.com/libretro/RetroArch
synced 2025-02-07 03:40:24 +00:00
Update filestream_getline to prevent heap corruption
This commit is contained in:
parent
841593f082
commit
60a45db69e
@ -478,7 +478,8 @@ char *filestream_getline(RFILE *stream)
|
||||
|
||||
if (!newline_tmp)
|
||||
{
|
||||
free(newline);
|
||||
if (newline)
|
||||
free(newline);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user