Fix cc_oid_unreferenced() so that it works with a Python debug build.
In the TRACE_REFS version of the code, call _Py_NewReference() instead of INCREF to bump the refcount from zero to one. When exiting the function, don't DECREF the object back to zero refcount, as that will reinvoke the object's deallocation function. XXX Why did this ever work?
Showing
Please register or sign in to comment