summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOguz Bastemur <obastemur@users.noreply.github.com>2016-08-29 19:53:00 +0200
committerJan Kotas <jkotas@microsoft.com>2016-08-29 10:53:00 -0700
commitab61a947efbd3ba8a801330539ff5199bb603b15 (patch)
tree6c5020187d0fea3ac594f88654de41e1cee4ada4
parent644796585ea684ee6625e004b52238f492d217bb (diff)
downloadcoreclr-ab61a947efbd3ba8a801330539ff5199bb603b15.tar.gz
coreclr-ab61a947efbd3ba8a801330539ff5199bb603b15.tar.bz2
coreclr-ab61a947efbd3ba8a801330539ff5199bb603b15.zip
Fix file descriptor leak on PAL_IsDebuggerPresent (#6958)
-rw-r--r--src/pal/src/init/pal.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pal/src/init/pal.cpp b/src/pal/src/init/pal.cpp
index d14b64bcd4..a5edb36428 100644
--- a/src/pal/src/init/pal.cpp
+++ b/src/pal/src/init/pal.cpp
@@ -705,6 +705,8 @@ PAL_IsDebuggerPresent()
}
}
+ close(status_fd);
+
return debugger_present;
#elif defined(__APPLE__)
struct kinfo_proc info = {};