aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/runtime/os_windows.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/runtime/os_windows.c b/src/runtime/os_windows.c
index 6c8f137ee5..62d94b65a0 100644
--- a/src/runtime/os_windows.c
+++ b/src/runtime/os_windows.c
@@ -278,6 +278,8 @@ runtime·minit(void)
void
runtime·unminit(void)
{
+ runtime·stdcall1(runtime·CloseHandle, (uintptr)g->m->thread);
+ g->m->thread = nil;
}
// Described in http://www.dcl.hpi.uni-potsdam.de/research/WRK/2007/08/getting-os-information-the-kuser_shared_data-structure/