diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2006-07-16 02:00:32 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-07-16 02:00:32 (GMT) |
commit | ef02b9e1445b7c7ae60c790a68ed1e0e75dfe435 (patch) | |
tree | bc9eec9af77a0a102700222dc44784f18571e96a /Objects | |
parent | 84be93b2db7e8c351bc5f25991c14a1384b5b523 (diff) | |
download | cpython-ef02b9e1445b7c7ae60c790a68ed1e0e75dfe435.zip cpython-ef02b9e1445b7c7ae60c790a68ed1e0e75dfe435.tar.gz cpython-ef02b9e1445b7c7ae60c790a68ed1e0e75dfe435.tar.bz2 |
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.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/longobject.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Objects/longobject.c b/Objects/longobject.c index c9b93b6..cbd6f2b 100644 --- a/Objects/longobject.c +++ b/Objects/longobject.c @@ -3149,9 +3149,8 @@ long_bitwise(PyLongObject *a, : 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; } |