Commit fdb460ec authored by Alex Brainman's avatar Alex Brainman Committed by Russ Cox

runtime: free lock handles on Windows

R=rsc
CC=golang-dev
https://golang.org/cl/1652041
parent 6cd8537f
...@@ -220,6 +220,8 @@ unlock(Lock *l) ...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment