diff options
| author | Russ Cox <rsc@golang.org> | 2014-09-18 22:33:49 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2014-09-18 22:33:49 -0400 |
| commit | 88d53ddb17d985693b2b5f065286d2647e4cb72d (patch) | |
| tree | c506b165575f593fb4b05c5358aeed7785a68eb3 /src/runtime | |
| parent | 66795e8ba101fc20916196db6d343b0d927e7dd5 (diff) | |
| download | go-88d53ddb17d985693b2b5f065286d2647e4cb72d.tar.xz | |
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
Diffstat (limited to 'src/runtime')
| -rw-r--r-- | src/runtime/os_windows.c | 2 |
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/ |
