Fix file descriptor leak on PAL_IsDebuggerPresent (#6958)
authorOguz Bastemur <obastemur@users.noreply.github.com>
Mon, 29 Aug 2016 17:53:00 +0000 (19:53 +0200)
committerJan Kotas <jkotas@microsoft.com>
Mon, 29 Aug 2016 17:53:00 +0000 (10:53 -0700)
src/pal/src/init/pal.cpp

index d14b64b..a5edb36 100644 (file)
@@ -705,6 +705,8 @@ PAL_IsDebuggerPresent()
         }
     }
 
+    close(status_fd);
+
     return debugger_present;
 #elif defined(__APPLE__)
     struct kinfo_proc info = {};