Fixed potential memory leak when loading test case files.
This commit is contained in:
parent
35ac315b70
commit
42afde6273
@ -110,6 +110,7 @@ bool TestCase::load(const char* filePath)
|
|||||||
fclose(fp);
|
fclose(fp);
|
||||||
if (readLen != 1)
|
if (readLen != 1)
|
||||||
{
|
{
|
||||||
|
delete[] buf;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user