Commit 88d53ddb authored by Russ Cox's avatar Russ Cox

runtime: release Windows thread handle in unminit

Fixes #8517.

LGTM=dvyukov, alex.brainman
R=golang-codereviews, dvyukov, alex.brainman
CC=golang-codereviews
https://golang.org/cl/145890044
parent 66795e8b
......@@ -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/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment