summaryrefslogtreecommitdiff
path: root/sched_getscheduler.c
diff options
context:
space:
mode:
authorrpj <rpj>2011-02-27 00:20:42 +0000
committerrpj <rpj>2011-02-27 00:20:42 +0000
commitd8f27d86f7286531e7035ff22a4188bdd77d206c (patch)
tree366460d5a8ae61a076fbd53e0e4f0ab39ef776d1 /sched_getscheduler.c
parent0c4e97f9955f032f0505bd45575301c81267e611 (diff)
Close the opened handle
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);
}
}