filesystem: fix fd leak in Platform_GetDirectoryCaseSensitivity

This commit is contained in:
Alibek Omarov 2025-01-13 13:54:42 +03:00
parent a7b776f3b9
commit f92a3695b3

View file

@ -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 );