Remove _Py_ResetReferences. Fixes bug #529750 "Circular reference makes
Py_Init crash". refchain cannot be cleared because objects can live across Py_Finalize() and Py_Initialize() if they are kept alive by circular references.
This commit is contained in:
@@ -277,10 +277,6 @@ Py_Finalize(void)
|
||||
#endif
|
||||
|
||||
call_ll_exitfuncs();
|
||||
|
||||
#ifdef Py_TRACE_REFS
|
||||
_Py_ResetReferences();
|
||||
#endif /* Py_TRACE_REFS */
|
||||
}
|
||||
|
||||
/* Create and initialize a new interpreter and thread, and return the
|
||||
|
||||
Reference in New Issue
Block a user