Skip to content

Conversation

gunjambi
Copy link

@gunjambi gunjambi commented Oct 8, 2025

Which issue(s) does the PR fix:

N/A

Does this PR introduce a user-facing change?

NONE

Description

In case syscall.MapViewOfFile fails, close the handle to the FileMapping.

In practice I don't expect this to happen very often or even at all. In fact I'm not even sure of the conditions in which MapViewOfFile would return an error. But if anything, it's a red herring when debugging handle leaks.

Signed-off-by: Jarkko Pöyry <jarkko.poyry@metaplay.io>
@gunjambi gunjambi requested a review from jesusvazquez as a code owner October 8, 2025 22:02
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.

1 participant