mirror of
https://github.com/recastnavigation/recastnavigation.git
synced 2026-09-30 22:15:42 +00:00
Fixed a potential memory leak when reading a mesh file.
This commit is contained in:
@@ -155,6 +155,7 @@ bool rcMeshLoaderObj::load(const char* filename)
|
||||
|
||||
if (readLen != 1)
|
||||
{
|
||||
delete[] buf;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user