[issue17899] os.listdir() leaks FDs if invoked on FD pointing to a non-directory

Serhiy Storchaka report at bugs.python.org
Mon Jul 22 19:14:09 CEST 2013


Serhiy Storchaka added the comment:

Larry, you forgot to remove "#undef HAVE_FDOPENDIR" at the start of the file. Beside this line the patch LGTM. I withdraw my objections in msg190887 because `close(fd)` can fail and change errno.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17899>
_______________________________________


More information about the Python-bugs-list mailing list