Fix file descriptor leak on PAL_IsDebuggerPresent (dotnet/coreclr#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)
Commit migrated from https://github.com/dotnet/coreclr/commit/ab61a947efbd3ba8a801330539ff5199bb603b15

src/coreclr/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 = {};