summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2006-04-15 12:47:23 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2006-04-15 12:47:23 (GMT)
commited8f78312654d74329892252d720d78765495c38 (patch)
tree5351d1af79de6262db80fb822b038eeb620be114 /Objects
parent841747cb56c6eeee9d89e6003a355b3d6c4c7cc1 (diff)
downloadcpython-ed8f78312654d74329892252d720d78765495c38.zip
cpython-ed8f78312654d74329892252d720d78765495c38.tar.gz
cpython-ed8f78312654d74329892252d720d78765495c38.tar.bz2
Clear dummy and emptyfrozenset, so that we don't have
dangling references in case of a Py_Initialize/Py_Finalize cycle.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/setobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/setobject.c b/Objects/setobject.c
index e7f6e09..ff2e17f 100644
--- a/Objects/setobject.c
+++ b/Objects/setobject.c
@@ -978,8 +978,8 @@ PySet_Fini(void)
so = free_sets[num_free_sets];
PyObject_GC_Del(so);
}
- Py_XDECREF(dummy);
- Py_XDECREF(emptyfrozenset);
+ Py_CLEAR(dummy);
+ Py_CLEAR(emptyfrozenset);
}
static PyObject *