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