diff options
author | Alex Brainman <alex.brainman@gmail.com> | 2010-06-11 00:53:54 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2010-06-11 00:53:54 -0700 |
commit | fdb460ec11500881ecfd57abd93a9c1e409898b7 (patch) | |
tree | 49da58b89998f650a61d36ce9a70261dae0b2d4b | |
parent | 6cd8537fd1191022d54f7bed469093702728fb5e (diff) | |
download | go-fdb460ec11500881ecfd57abd93a9c1e409898b7.tar.gz go-fdb460ec11500881ecfd57abd93a9c1e409898b7.zip |
runtime: free lock handles on Windows
R=rsc
CC=golang-dev
https://golang.org/cl/1652041
-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 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 |