diff options
Diffstat (limited to 'pthreads/sched_getscheduler.c')
-rw-r--r-- | pthreads/sched_getscheduler.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pthreads/sched_getscheduler.c b/pthreads/sched_getscheduler.c index 9bc819e47..8769c15e5 100644 --- a/pthreads/sched_getscheduler.c +++ b/pthreads/sched_getscheduler.c @@ -62,6 +62,8 @@ sched_getscheduler (pid_t pid) (0xFF & ERROR_ACCESS_DENIED)) ? EPERM : ESRCH; return -1; } + else + CloseHandle(h); } } |