diff options
| author | Christian Heimes <christian@cheimes.de> | 2012-09-11 13:47:28 (GMT) |
|---|---|---|
| committer | Christian Heimes <christian@cheimes.de> | 2012-09-11 13:47:28 (GMT) |
| commit | 04ac4c1cb8e7af5571adbe64cb82938a323e5850 (patch) | |
| tree | 9345201eb82f1465180acfa44e8769789329bd16 /Python/formatter_unicode.c | |
| parent | eeb5635843810ee67f2b18b96f4266d134d913ee (diff) | |
| download | cpython-04ac4c1cb8e7af5571adbe64cb82938a323e5850.zip cpython-04ac4c1cb8e7af5571adbe64cb82938a323e5850.tar.gz cpython-04ac4c1cb8e7af5571adbe64cb82938a323e5850.tar.bz2 | |
Issue #15895: my analysis was slightly off. The FILE pointer is only leaked when set_main_loader() fails for a pyc file with closeit=0. In the success case run_pyc_file() does its own cleanup of the fp. I've changed the code to use another FILE ptr for pyc files and moved the fclose() to PyRun_SimpleFileExFlags() to make it more obvious what's happening.
Diffstat (limited to 'Python/formatter_unicode.c')
0 files changed, 0 insertions, 0 deletions
