diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-12-06 15:48:16 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-12-06 15:48:16 (GMT) |
commit | 1a48ca8c53b80627ebf3c4215140cdc07152556d (patch) | |
tree | c22b89bcf2e70e08224ddf7677d9010bafa6cb01 /install-sh | |
parent | 7802a53e38399e8df647f0633f18658b7bb1be4a (diff) | |
download | cpython-1a48ca8c53b80627ebf3c4215140cdc07152556d.zip cpython-1a48ca8c53b80627ebf3c4215140cdc07152556d.tar.gz cpython-1a48ca8c53b80627ebf3c4215140cdc07152556d.tar.bz2 |
Fix memory leak in dict_to_map(), SF bug [ #485152 ] memory leak in test_scope.
PyCell_Set() incremenets the reference count, so the earlier XINCREF
causes a leak.
Also make a number of small performance improvements to the code on
the assumption that most of the time variables are not rebound across
a FastToLocals() / LocalsToFast() pair.
Replace uses of PyCell_Set() and PyCell_Get() with PyCell_SET() and
PyCell_GET(), since the frame is guaranteed to contain cells.
Diffstat (limited to 'install-sh')
0 files changed, 0 insertions, 0 deletions