Skip to content

Commit

Permalink
windows threading: add missing call to CloseHandle
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrk committed May 2, 2018
1 parent 3a8dc4e commit 86a428a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions std/os/index.zig
Expand Up @@ -2477,6 +2477,7 @@ pub const Thread = struct {
},
builtin.Os.windows => {
assert(windows.WaitForSingleObject(self.data.handle, windows.INFINITE) == windows.WAIT_OBJECT_0);
assert(windows.CloseHandle(self.data.handle) != 0);
assert(windows.HeapFree(self.data.heap_handle, 0, self.data.alloc_start) != 0);
},
else => @compileError("Unsupported OS"),
Expand Down

0 comments on commit 86a428a

Please sign in to comment.