• Jeremy Hylton's avatar
    Fix memory leak in dict_to_map(), SF bug [ #485152 ] memory leak in test_scope. · 1a48ca8c
    Jeremy Hylton yazdı
    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.
    1a48ca8c
frameobject.c 11.9 KB