diff options
Diffstat (limited to 'src/pkg/runtime/windows/thread.c')
-rw-r--r-- | src/pkg/runtime/windows/thread.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pkg/runtime/windows/thread.c b/src/pkg/runtime/windows/thread.c index b5f8cc033..21b679b33 100644 --- a/src/pkg/runtime/windows/thread.c +++ b/src/pkg/runtime/windows/thread.c @@ -220,6 +220,8 @@ unlock(Lock *l) void destroylock(Lock *l) { + if(l->event != 0) + stdcall(CloseHandle, 1, l->event); } void |