Skip to content

Commit

Permalink
fix handles leakage
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksandr Zagaevskiy committed Aug 10, 2021
1 parent 3969aeb commit 20881f4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions process_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ func _pidAlive(pid int) bool {
if err != nil {
return false
}
defer syscall.CloseHandle(h)

var ec uint32
if e := syscall.GetExitCodeProcess(h, &ec); e != nil {
Expand Down

0 comments on commit 20881f4

Please sign in to comment.