summaryrefslogtreecommitdiff
path: root/sched_getscheduler.c
diff options
context:
space:
mode:
Diffstat (limited to 'sched_getscheduler.c')
-rw-r--r--sched_getscheduler.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sched_getscheduler.c b/sched_getscheduler.c
index 9bc819e..8769c15 100644
--- a/sched_getscheduler.c
+++ b/sched_getscheduler.c
@@ -62,6 +62,8 @@ sched_getscheduler (pid_t pid)
(0xFF & ERROR_ACCESS_DENIED)) ? EPERM : ESRCH;
return -1;
}
+ else
+ CloseHandle(h);
}
}