[issue29734] os.stat handle leak

Steve Dower report at bugs.python.org
Sat Feb 2 16:07:58 EST 2019


Steve Dower <steve.dower at python.org> added the comment:

We certainly shouldn't be calling CloseHandle on a parameter like this anyway, so the change looks good to me.

However, I notice that we don't necessarily preserve GetLastError() throughout here, so perhaps we ought to consider changing the return value interpretation at some point? (e.g. CloseHandle() may change it, and so we lose the actual error) That can be a future task though.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue29734>
_______________________________________


More information about the Python-bugs-list mailing list