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

Evgeny Kapun report at bugs.python.org
Fri May 3 21:16:26 CEST 2013


New submission from Evgeny Kapun:

When called with a file descriptor as an argument, os.listdir() duplicates it to pass to fdopendir(3). If this call fails, the new file descriptor is not closed, which leads to file descriptor leak.

----------
components: Library (Lib)
messages: 188322
nosy: abacabadabacaba
priority: normal
severity: normal
status: open
title: os.listdir() leaks FDs if invoked on FD pointing to a non-directory
type: resource usage
versions: Python 3.3, Python 3.4

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


More information about the New-bugs-announce mailing list