diff options
| author | Martin v. Löwis <martin@v.loewis.de> | 2006-04-15 12:47:23 +0000 |
|---|---|---|
| committer | Martin v. Löwis <martin@v.loewis.de> | 2006-04-15 12:47:23 +0000 |
| commit | ed8f78312654d74329892252d720d78765495c38 (patch) | |
| tree | 5351d1af79de6262db80fb822b038eeb620be114 | |
| parent | 841747cb56c6eeee9d89e6003a355b3d6c4c7cc1 (diff) | |
| download | cpython-git-ed8f78312654d74329892252d720d78765495c38.tar.gz | |
Clear dummy and emptyfrozenset, so that we don't have
dangling references in case of a Py_Initialize/Py_Finalize
cycle.
| -rw-r--r-- | Objects/setobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/setobject.c b/Objects/setobject.c index e7f6e09fec..ff2e17f031 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 * |
