HomeAleph Objects Inc

bpo-29734: nt._getfinalpathname handle leak

Authored by Mark Becwar <mark@thebecwar.com> on Mar 19 2017, 6:52 AM.

Description

bpo-29734: nt._getfinalpathname handle leak

  • 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

Event Timeline

Mark Becwar <mark@thebecwar.com> committed rCP23bfba7f566d: bpo-29734: nt._getfinalpathname handle leak (authored by Mark Becwar <mark@thebecwar.com>).Jan 12 2019, 8:02 AM