[Python-checkins] commit of r41643 - python/trunk/Objects/enumobject.c
neal.norwitz
python-checkins at python.org
Sun Dec 11 21:55:11 CET 2005
Author: neal.norwitz
Date: Sun Dec 11 21:55:10 2005
New Revision: 41643
Modified:
python/trunk/Objects/enumobject.c
Log:
en_sit will be freed when en is DECREF'd. Don't double free.
Modified: python/trunk/Objects/enumobject.c
==============================================================================
--- python/trunk/Objects/enumobject.c (original)
+++ python/trunk/Objects/enumobject.c Sun Dec 11 21:55:10 2005
@@ -33,7 +33,6 @@
}
en->en_result = PyTuple_Pack(2, Py_None, Py_None);
if (en->en_result == NULL) {
- Py_DECREF(en->en_sit);
Py_DECREF(en);
return NULL;
}
More information about the Python-checkins
mailing list