foo being allocated with metadata based allocator needs to

be freed similarly.
This commit is contained in:
David Carlier 2018-07-05 21:10:07 +01:00 committed by alexey.lysiuk
parent e5249f302a
commit 2a59327aeb

View file

@ -97,7 +97,7 @@ static bool CheckIfRaw(FileReader & data)
}
else if (ofs >= 64000-1) // Need one byte for an empty column
{
free (foo);
M_Free (foo);
return true;
}
else
@ -108,14 +108,14 @@ static bool CheckIfRaw(FileReader & data)
{
if (foo2[ofs] == 255)
{
free (foo);
M_Free (foo);
return true;
}
ofs += foo2[ofs+1] + 4;
}
if (ofs >= 64000)
{
free (foo);
M_Free (foo);
return true;
}
}