Revert "Update filestream_getline to prevent heap corruption"

This reverts commit 60a45db69ea8b26301674a6e120d93485dad241a.
This commit is contained in:
twinaphex 2018-01-19 02:49:24 +01:00
parent 60a45db69e
commit 1f8e0fdfe5

View File

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