[Python-checkins] r50684 - python/trunk/Objects/setobject.c
neal.norwitz
python-checkins at python.org
Mon Jul 17 02:57:20 CEST 2006
Author: neal.norwitz
Date: Mon Jul 17 02:57:15 2006
New Revision: 50684
Modified:
python/trunk/Objects/setobject.c
Log:
otherset is known to be non-NULL based on checks before and DECREF after.
DECREF otherset rather than XDECREF in error conditions too.
Reported by Klockwork #154.
Modified: python/trunk/Objects/setobject.c
==============================================================================
--- python/trunk/Objects/setobject.c (original)
+++ python/trunk/Objects/setobject.c Mon Jul 17 02:57:15 2006
@@ -1380,12 +1380,12 @@
while (set_next(otherset, &pos, &entry)) {
int rv = set_discard_entry(so, entry);
if (rv == -1) {
- Py_XDECREF(otherset);
+ Py_DECREF(otherset);
return NULL;
}
if (rv == DISCARD_NOTFOUND) {
if (set_add_entry(so, entry) == -1) {
- Py_XDECREF(otherset);
+ Py_DECREF(otherset);
return NULL;
}
}
More information about the Python-checkins
mailing list