filesystem: fix fd leak in Platform_GetDirectoryCaseSensitivity
This commit is contained in:
parent
a7b776f3b9
commit
f92a3695b3
1 changed files with 3 additions and 0 deletions
|
@ -66,7 +66,10 @@ static qboolean Platform_GetDirectoryCaseSensitivity( const char *dir )
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
if( ioctl( fd, FS_IOC_GETFLAGS, &flags ) < 0 )
|
if( ioctl( fd, FS_IOC_GETFLAGS, &flags ) < 0 )
|
||||||
|
{
|
||||||
|
close( fd );
|
||||||
return true;
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
close( fd );
|
close( fd );
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue