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: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=55bd1efb2ae7b559ac6a89a6f24bb62560eeafcf;p=python Clear reference to the static PyExc_RecursionErrorInst in _PyExc_Fini. --- diff --git a/Objects/exceptions.c b/Objects/exceptions.c index 2f2a330f92..f874dcbac0 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); }