Fix several ref count bugs.
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?
Showing
Please register or sign in to comment