[issue18175] os.listdir(fd) leaks fd on error

2013-06-09 Thread Larry Hastings
Larry Hastings added the comment: Duplicate of #17899. -- resolution: -> duplicate stage: -> committed/rejected status: open -> closed type: -> resource usage ___ Python tracker _

[issue18175] os.listdir(fd) leaks fd on error

2013-06-09 Thread R. David Murray
Changes by R. David Murray : -- nosy: +larry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue18175] os.listdir(fd) leaks fd on error

2013-06-09 Thread Richard Oudkerk
New submission from Richard Oudkerk: 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. -- messages: 190875 nosy: sbt priority: normal severity: norm