platform: linux: fix descriptor leak
This commit is contained in:
parent
66d1a632a7
commit
9d93eca572
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue