From 89350a41b969b1fb20d0e24db28a20491e448860 Mon Sep 17 00:00:00 2001 From: Neil Schemenauer Date: Sun, 17 Nov 2002 17:52:44 +0000 Subject: 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. --- Python/pythonrun.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'Python/pythonrun.c') diff --git a/Python/pythonrun.c b/Python/pythonrun.c index b85c390a770..c2508fa579d 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -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 -- cgit v1.2.3