Mercurial > cpython-lru_cache-weakref
comparison Python/pythonrun.c @ 52545:2d80c2797501
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.
| author | Kristján Valur Jónsson <kristjan@ccpgames.com> |
|---|---|
| date | Tue, 31 Mar 2009 17:43:39 +0000 |
| parents | 3049ac17e256 |
| children | 111352112afa |
comparison
equal
deleted
inserted
replaced
| 52543:a398a2f75d44 | 52545:2d80c2797501 |
|---|
