[Python-checkins] r50674 - python/trunk/Objects/longobject.c
neal.norwitz
python-checkins at python.org
Sun Jul 16 04:00:37 CEST 2006
Author: neal.norwitz
Date: Sun Jul 16 04:00:32 2006
New Revision: 50674
Modified:
python/trunk/Objects/longobject.c
Log:
a & b were dereffed above, so they are known to be valid pointers.
z is known to be NULL, nothing to DECREF.
Reported by Klockwork, #107.
Modified: python/trunk/Objects/longobject.c
==============================================================================
--- python/trunk/Objects/longobject.c (original)
+++ python/trunk/Objects/longobject.c Sun Jul 16 04:00:32 2006
@@ -3149,9 +3149,8 @@
: MAX(size_a, size_b);
z = _PyLong_New(size_z);
if (z == NULL) {
- Py_XDECREF(a);
- Py_XDECREF(b);
- Py_XDECREF(z);
+ Py_DECREF(a);
+ Py_DECREF(b);
return NULL;
}
More information about the Python-checkins
mailing list