Commit 55814f49 authored by Neal Norwitz's avatar Neal Norwitz

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.
parent 6b4b74a8
...@@ -3149,9 +3149,8 @@ long_bitwise(PyLongObject *a, ...@@ -3149,9 +3149,8 @@ long_bitwise(PyLongObject *a,
: MAX(size_a, size_b); : MAX(size_a, size_b);
z = _PyLong_New(size_z); z = _PyLong_New(size_z);
if (z == NULL) { if (z == NULL) {
Py_XDECREF(a); Py_DECREF(a);
Py_XDECREF(b); Py_DECREF(b);
Py_XDECREF(z);
return NULL; return NULL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment