diff --git a/src/pkg/runtime/windows/thread.c b/src/pkg/runtime/windows/thread.c index b5f8cc0330..21b679b331 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