Skip to content

Commit ee27336

Browse files
author
Ladislav Zezula
committed
+ Fixed leaked handle when _stat fails
1 parent 9915997 commit ee27336

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/FileStream.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ static bool BaseFile_Open(TFileStream * pStream, const TCHAR * szFileName, DWORD
156156
if(fstat64(handle, &fileinfo) == -1)
157157
{
158158
nLastError = errno;
159+
close(handle);
159160
return false;
160161
}
161162

0 commit comments

Comments
 (0)