From 55bd1efb2ae7b559ac6a89a6f24bb62560eeafcf Mon Sep 17 00:00:00 2001 From: Alexandre Vassalotti Date: Fri, 12 Jun 2009 18:56:57 +0000 Subject: Clear reference to the static PyExc_RecursionErrorInst in _PyExc_Fini. --- Objects/exceptions.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Objects/exceptions.c b/Objects/exceptions.c index 2f2a330..f874dcb 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); } -- cgit v0.12