From: Neal Norwitz Date: Sun, 16 Jul 2006 02:00:32 +0000 (+0000) Subject: a & b were dereffed above, so they are known to be valid pointers. X-Git-Tag: v2.5b3~242 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ef02b9e1445b7c7ae60c790a68ed1e0e75dfe435;p=python 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. --- diff --git a/Objects/longobject.c b/Objects/longobject.c index c9b93b6ac6..cbd6f2be59 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; }