Update filestream_getline to prevent heap corruption

This commit is contained in:
twinaphex 2018-01-19 02:44:18 +01:00
parent 841593f082
commit 60a45db69e
1 changed files with 2 additions and 1 deletions

View File

@ -478,7 +478,8 @@ char *filestream_getline(RFILE *stream)
if (!newline_tmp)
{
free(newline);
if (newline)
free(newline);
return NULL;
}