summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorAlexandre Vassalotti <alexandre@peadrop.com>2009-06-12 18:56:57 (GMT)
committerAlexandre Vassalotti <alexandre@peadrop.com>2009-06-12 18:56:57 (GMT)
commit55bd1efb2ae7b559ac6a89a6f24bb62560eeafcf (patch)
tree7e1b249b29f55142d1c8b24ac218a43a1ecb4280 /Objects
parent2dcd7a0d5287d39e6ab5f6782a0fa1d968a4a78c (diff)
downloadcpython-55bd1efb2ae7b559ac6a89a6f24bb62560eeafcf.zip
cpython-55bd1efb2ae7b559ac6a89a6f24bb62560eeafcf.tar.gz
cpython-55bd1efb2ae7b559ac6a89a6f24bb62560eeafcf.tar.bz2
Clear reference to the static PyExc_RecursionErrorInst in _PyExc_Fini.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/exceptions.c4
1 files 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);
}