mirror of
https://github.com/w23/xash3d-fwgs
synced 2024-12-14 21:20:26 +01:00
platform: linux: fix descriptor leak
This commit is contained in:
parent
66d1a632a7
commit
9d93eca572
@ -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 )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user