mirror of
https://github.com/ladislav-zezula/StormLib.git
synced 2026-01-21 07:04:29 +01:00
+ Fixed leaked handle when _stat fails
This commit is contained in:
@@ -156,6 +156,7 @@ static bool BaseFile_Open(TFileStream * pStream, const TCHAR * szFileName, DWORD
|
||||
if(fstat64(handle, &fileinfo) == -1)
|
||||
{
|
||||
nLastError = errno;
|
||||
close(handle);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user