comparison Python/fileutils.c @ 78991:c3539eb02470

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.
author Christian Heimes <christian@cheimes.de>
date Tue, 11 Sep 2012 15:47:28 +0200
parents c80d9a0bd5a0
children 5db6d9ddf6e8 13dd8199c112
comparison
equal deleted inserted replaced
78990:4754c4a710e6 78991:c3539eb02470