]> granicus.if.org Git - python/commitdiff
Clear reference to the static PyExc_RecursionErrorInst in _PyExc_Fini.
authorAlexandre Vassalotti <alexandre@peadrop.com>
Fri, 12 Jun 2009 18:56:57 +0000 (18:56 +0000)
committerAlexandre Vassalotti <alexandre@peadrop.com>
Fri, 12 Jun 2009 18:56:57 +0000 (18:56 +0000)
Objects/exceptions.c

index 2f2a330f923edab17a95a8c9401ae3b536b77549..f874dcbac06fc3624fef6ec3a1a53d6e3a9170bb 100644 (file)
@@ -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);
 }