summaryrefslogtreecommitdiff
path: root/Python/Python-ast.c
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2012-09-11 15:47:28 +0200
committerChristian Heimes <christian@cheimes.de>2012-09-11 15:47:28 +0200
commite9f8d79a728051ea0254a6885d2ce11a48faa80f (patch)
treee7617f21087b20da0560b10e1d35de63e2a2f01e /Python/Python-ast.c
parente9af11a58c7e0d1facc54f24a97cf1ecbf3a56bb (diff)
downloadcpython-e9f8d79a728051ea0254a6885d2ce11a48faa80f.tar.gz
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/Python-ast.c')
0 files changed, 0 insertions, 0 deletions