Staging
v0.5.1
v0.5.1
https://github.com/python/cpython
Revision 04ac4c1cb8e7af5571adbe64cb82938a323e5850 authored by Christian Heimes on 11 September 2012, 13:47:28 UTC, committed by Christian Heimes on 11 September 2012, 13:47:28 UTC
1 parent eeb5635
Tip revision: 04ac4c1cb8e7af5571adbe64cb82938a323e5850 authored by Christian Heimes on 11 September 2012, 13:47:28 UTC
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.
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.
Tip revision: 04ac4c1
File | Mode | Size |
---|---|---|
Doc | ||
Grammar | ||
Include | ||
Lib | ||
Mac | ||
Misc | ||
Modules | ||
Objects | ||
PC | ||
PCbuild | ||
Parser | ||
Python | ||
Tools | ||
.bzrignore | -rw-r--r-- | 584 bytes |
.gitignore | -rw-r--r-- | 865 bytes |
.hgeol | -rw-r--r-- | 721 bytes |
.hgignore | -rw-r--r-- | 1.2 KB |
.hgtags | -rw-r--r-- | 5.2 KB |
.hgtouch | -rw-r--r-- | 467 bytes |
LICENSE | -rw-r--r-- | 14.6 KB |
Makefile.pre.in | -rw-r--r-- | 46.6 KB |
README | -rw-r--r-- | 6.4 KB |
config.guess | -rwxr-xr-x | 43.8 KB |
config.sub | -rwxr-xr-x | 34.6 KB |
configure | -rwxr-xr-x | 428.1 KB |
configure.ac | -rw-r--r-- | 130.9 KB |
install-sh | -rwxr-xr-x | 7.0 KB |
pyconfig.h.in | -rw-r--r-- | 39.1 KB |
setup.py | -rw-r--r-- | 91.4 KB |
Computing file changes ...