Browse Source

platform: linux: fix descriptor leak

pull/2/head
Alibek Omarov 6 years ago
parent
commit
9d93eca572
  1. 1
      engine/platform/linux/sys_linux.c

1
engine/platform/linux/sys_linux.c

@ -51,6 +51,7 @@ qboolean Sys_DebuggerPresent( void ) @@ -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…
Cancel
Save