[proxy] github.com← back | site home | direct (HTTPS) ↗ | proxy home | ◑ dark◐ light

bpo-29734: nt._getfinalpathname handle leak by thebecwar · Pull Request #740 · python/cpython

Mariatta

- Make sure that failure paths call CloseHandle
- Fix inconsistent flags in GetFinalPathNameByHandleW calls
- Move CloseHandle call from get_target_path to its calling function.
- Add unit test to check that the fix works, and prevent regression

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

Feb 2, 2019

Make sure that failure paths call CloseHandle outside of the function that failed
(cherry picked from commit b82bfac)

Co-authored-by: Mark Becwar <mark@thebecwar.com>

miss-islington added a commit that referenced this pull request

Feb 2, 2019

Make sure that failure paths call CloseHandle outside of the function that failed
(cherry picked from commit b82bfac)

Co-authored-by: Mark Becwar <mark@thebecwar.com>