From: Alex Brainman Date: Fri, 11 Jun 2010 07:53:54 +0000 (-0700) Subject: runtime: free lock handles on Windows X-Git-Tag: weekly.2010-06-21~49 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=fdb460ec11500881ecfd57abd93a9c1e409898b7;p=gostls13.git runtime: free lock handles on Windows R=rsc CC=golang-dev https://golang.org/cl/1652041 --- 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