platform: linux: fix descriptor leak

This commit is contained in:
Alibek Omarov 2018-11-18 17:50:15 +03:00
parent 66d1a632a7
commit 9d93eca572

View File

@ -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 )
{ {