diff --git a/filesystem/dir.c b/filesystem/dir.c index 22ce835b..622caf54 100644 --- a/filesystem/dir.c +++ b/filesystem/dir.c @@ -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 );