mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
filesystem: fix fd leak in Platform_GetDirectoryCaseSensitivity
This commit is contained in:
@@ -66,7 +66,10 @@ static qboolean Platform_GetDirectoryCaseSensitivity( const char *dir )
|
||||
return true;
|
||||
|
||||
if( ioctl( fd, FS_IOC_GETFLAGS, &flags ) < 0 )
|
||||
{
|
||||
close( fd );
|
||||
return true;
|
||||
}
|
||||
|
||||
close( fd );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user