mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-07 04:40:43 +08:00
platform: linux: fix descriptor leak
This commit is contained in:
@@ -51,6 +51,7 @@ qboolean Sys_DebuggerPresent( void )
|
||||
return 0;
|
||||
|
||||
ssize_t num_read = read( status_fd, buf, sizeof( buf ) );
|
||||
close( status_fd );
|
||||
|
||||
if ( num_read > 0 )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user