[Python-checkins] r45434 - python/trunk/Objects/setobject.c

martin.v.loewis python-checkins at python.org
Sat Apr 15 14:47:24 CEST 2006


Author: martin.v.loewis
Date: Sat Apr 15 14:47:23 2006
New Revision: 45434

Modified:
   python/trunk/Objects/setobject.c
Log:
Clear dummy and emptyfrozenset, so that we don't have
dangling references in case of a Py_Initialize/Py_Finalize
cycle.


Modified: python/trunk/Objects/setobject.c
==============================================================================
--- python/trunk/Objects/setobject.c	(original)
+++ python/trunk/Objects/setobject.c	Sat Apr 15 14:47:23 2006
@@ -978,8 +978,8 @@
 		so = free_sets[num_free_sets];
 		PyObject_GC_Del(so);
 	}
-	Py_XDECREF(dummy);
-	Py_XDECREF(emptyfrozenset);
+	Py_CLEAR(dummy);
+	Py_CLEAR(emptyfrozenset);
 }
 
 static PyObject *


More information about the Python-checkins mailing list