summaryrefslogtreecommitdiffstats
path: root/Python/atof.c
diff options
context:
space:
mode:
authorKristján Valur Jónsson <kristjan@ccpgames.com>2009-03-31 17:43:39 (GMT)
committerKristján Valur Jónsson <kristjan@ccpgames.com>2009-03-31 17:43:39 (GMT)
commite1b0445ff97ef58d9888091df6c9bc2d3917ad0f (patch)
treeba29ec09b0fff42a988df8e41564940d782f27d4 /Python/atof.c
parent47f27a346f0eb2bf067e8df2cedf7398985fd1a2 (diff)
downloadcpython-e1b0445ff97ef58d9888091df6c9bc2d3917ad0f.zip
cpython-e1b0445ff97ef58d9888091df6c9bc2d3917ad0f.tar.gz
cpython-e1b0445ff97ef58d9888091df6c9bc2d3917ad0f.tar.bz2
get_file() no longer leaks a FILE structure. If given a file descriptor, it calls dup() to get a new handle. Then both the FILE object and the fd can be closed.
This is important, because otherwise, the leaked FILE object will be closed on process exit, causing assertions on Windows, e.g. in the test_multiprocessing.py regression test.
Diffstat (limited to 'Python/atof.c')
0 files changed, 0 insertions, 0 deletions