mirror of
https://github.com/w23/xash3d-fwgs
synced 2024-12-15 13:41:33 +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;
|
return 0;
|
||||||
|
|
||||||
ssize_t num_read = read( status_fd, buf, sizeof( buf ) );
|
ssize_t num_read = read( status_fd, buf, sizeof( buf ) );
|
||||||
|
close( status_fd );
|
||||||
|
|
||||||
if ( num_read > 0 )
|
if ( num_read > 0 )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user