From: Alexandre Vassalotti Date: Fri, 12 Jun 2009 18:56:57 +0000 (+0000) Subject: Clear reference to the static PyExc_RecursionErrorInst in _PyExc_Fini. X-Git-Tag: v2.7a1~970 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=55bd1efb2ae7b559ac6a89a6f24bb62560eeafcf;p=thirdparty%2FPython%2Fcpython.git Clear reference to the static PyExc_RecursionErrorInst in _PyExc_Fini. --- diff --git a/Objects/exceptions.c b/Objects/exceptions.c index 2f2a330f923e..f874dcbac06f 100644 --- a/Objects/exceptions.c +++ b/Objects/exceptions.c @@ -2136,6 +2136,6 @@ _PyExc_Init(void) void _PyExc_Fini(void) { - Py_XDECREF(PyExc_MemoryErrorInst); - PyExc_MemoryErrorInst = NULL; + Py_CLEAR(PyExc_MemoryErrorInst); + Py_CLEAR(PyExc_RecursionErrorInst); }