• Jeremy Hylton's avatar
    Fix several ref count bugs. · de5d6448
    Jeremy Hylton authored
    Remove object_from_oid() which appeared to be mis-used about half the
    time.  Instead use std PyDict_GetItem() and incref only when
    necessary.
    
    Make sure an object's reference to its cache is decref'd when the
    object is deallocated.  This change seems to eliminate leaking pickle
    caches.
    
    Remaining mystery: Why do objects stay in the cache even when there
    are no references to them?
    de5d6448
cPickleCache.c 26.3 KB