diff --git a/Modules/operator.c b/Modules/operator.c index c38ec1693a5..25b0737dbfa 100644 --- a/Modules/operator.c +++ b/Modules/operator.c @@ -292,9 +292,7 @@ compare_digest(PyObject *self, PyObject *args) PyBuffer_Release(&view_b); } - result = PyBool_FromLong(rc); - Py_INCREF(result); - return result; + return PyBool_FromLong(rc); } /* operator methods **********************************************************/