1
0
mirror of https://github.com/golang/go synced 2024-11-25 04:57:56 -07:00

runtime: free lock handles on Windows

R=rsc
CC=golang-dev
https://golang.org/cl/1652041
This commit is contained in:
Alex Brainman 2010-06-11 00:53:54 -07:00 committed by Russ Cox
parent 6cd8537fd1
commit fdb460ec11

View File

@ -220,6 +220,8 @@ unlock(Lock *l)
void void
destroylock(Lock *l) destroylock(Lock *l)
{ {
if(l->event != 0)
stdcall(CloseHandle, 1, l->event);
} }
void void