[issue21058] tempfile.NamedTemporaryFile leaks file descriptor when fdopen fails

2014-03-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset aa2a05fe46ae by Victor Stinner in branch '3.4': Issue #21058: fix typo in a comment. Patch written by Vajrasky Kok. http://hg.python.org/cpython/rev/aa2a05fe46ae New changeset 4e3c76cb0e8a by Victor Stinner in branch 'default': (Merge 3.4) Issue #21

[issue21058] tempfile.NamedTemporaryFile leaks file descriptor when fdopen fails

2014-03-25 Thread Vajrasky Kok
Vajrasky Kok added the comment: There is a typo. s/io.pen/io.open/ -- keywords: +patch nosy: +vajrasky Added file: http://bugs.python.org/file34617/fix_typo_21058.patch ___ Python tracker _

[issue21058] tempfile.NamedTemporaryFile leaks file descriptor when fdopen fails

2014-03-25 Thread STINNER Victor
STINNER Victor added the comment: Thanks for the report, the issue is now fixed. -- nosy: +haypo resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue21058] tempfile.NamedTemporaryFile leaks file descriptor when fdopen fails

2014-03-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7f87c26f59ab by Victor Stinner in branch '3.4': Issue #21058: Fix a leak of file descriptor in tempfile.NamedTemporaryFile(), http://hg.python.org/cpython/rev/7f87c26f59ab New changeset b1e3035216f8 by Victor Stinner in branch 'default': (Merge 3.4)

[issue21058] tempfile.NamedTemporaryFile leaks file descriptor when fdopen fails

2014-03-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 182f08c0dd45 by Victor Stinner in branch '2.7': Issue #21058: NamedTemporaryFile() closes the FD on any error, not only Exception http://hg.python.org/cpython/rev/182f08c0dd45 -- ___ Python tracker

[issue21058] tempfile.NamedTemporaryFile leaks file descriptor when fdopen fails

2014-03-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset f2f0eec4a556 by Victor Stinner in branch '2.7': Issue #21058: Fix a leak of file descriptor in tempfile.NamedTemporaryFile(), http://hg.python.org/cpython/rev/f2f0eec4a556 -- nosy: +python-dev ___ Python

[issue21058] tempfile.NamedTemporaryFile leaks file descriptor when fdopen fails

2014-03-24 Thread tholzer
New submission from tholzer: The NamedTemporaryFile inside the standard tempfile library leaks an open file descriptor when fdopen fails. Test case: # ulimit -SHn 50 # python test1.py from tempfile import NamedTemporaryFile while 1: try: NamedTemporaryFile(mode='x') except Va