]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: free lock handles on Windows
authorAlex Brainman <alex.brainman@gmail.com>
Fri, 11 Jun 2010 07:53:54 +0000 (00:53 -0700)
committerRuss Cox <rsc@golang.org>
Fri, 11 Jun 2010 07:53:54 +0000 (00:53 -0700)
R=rsc
CC=golang-dev
https://golang.org/cl/1652041

src/pkg/runtime/windows/thread.c

index b5f8cc0330a4c4fd684af666ab1dd34171710d58..21b679b3312cf2ca9d46738d78aea38cb16eef52 100644 (file)
@@ -220,6 +220,8 @@ unlock(Lock *l)
 void
 destroylock(Lock *l)
 {
+       if(l->event != 0)
+               stdcall(CloseHandle, 1, l->event);
 }
 
 void