Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix handles leakage #173

Merged
merged 1 commit into from
Aug 10, 2021
Merged

fix handles leakage #173

merged 1 commit into from
Aug 10, 2021

Conversation

a-zagaevskiy
Copy link

@a-zagaevskiy a-zagaevskiy commented Aug 10, 2021

The leakage was detected during using of Nomad v0.10.4 on Windows 10: hashicorp/nomad#11026

@a-zagaevskiy a-zagaevskiy changed the title fix handlers leakage fix handles leakage Aug 10, 2021
Copy link

@notnoop notnoop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @a-zagaevskiy !

For future readers, Windows API docs states that process handlers should be released:

When you are finished with the handle, be sure to close it using the CloseHandle function.

https://docs.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-openprocess

@notnoop notnoop merged commit d555eeb into hashicorp:master Aug 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants