summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorKristján Valur Jónsson <kristjan@ccpgames.com>2009-03-31 17:43:39 +0000
committerKristján Valur Jónsson <kristjan@ccpgames.com>2009-03-31 17:43:39 +0000
commit9b4043ea9ffe01f4d8dbfaa87a744f590af17923 (patch)
treef4743e5fee652f9375895bb0ea30c2dbbc8a70b4 /Python/pythonrun.c
parent8c0ade2ebb445c23d7c5c353a6fce0f4f6aa3717 (diff)
downloadcpython-9b4043ea9ffe01f4d8dbfaa87a744f590af17923.tar.gz
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/pythonrun.c')
0 files changed, 0 insertions, 0 deletions