This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: os.listdir(fd) leaks fd on error
Type: resource usage Stage: resolved
Components: Versions:
process
Status: closed Resolution: duplicate
Dependencies: Superseder:
Assigned To: Nosy List: larry, sbt
Priority: normal Keywords:

Created on 2013-06-09 22:31 by sbt, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (2)
msg190875 - (view) Author: Richard Oudkerk (sbt) * (Python committer) Date: 2013-06-09 22:31
If os.listdir() is used with an fd, but fdopendir() fails (e.g. if the the fd is a normal file) then a duplicated fd is leaked.

This explains the leaks in test_shutil mentioned in #18174.
msg190883 - (view) Author: Larry Hastings (larry) * (Python committer) Date: 2013-06-10 02:04
Duplicate of #17899.
History
Date User Action Args
2022-04-11 14:57:46adminsetgithub: 62375
2013-06-10 02:04:27larrysetstatus: open -> closed
type: resource usage
messages: + msg190883

resolution: duplicate
stage: resolved
2013-06-09 22:54:46r.david.murraysetnosy: + larry
2013-06-09 22:31:46sbtcreate