From: Georg Brandl Date: Sun, 24 Jun 2012 11:54:51 +0000 (+0200) Subject: Fix a refleak in c82451eeb595. X-Git-Tag: v3.3.0b1~67 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=93b7d7e4b9c4115494132bbe82ca9851813e81d7;p=python Fix a refleak in c82451eeb595. --- diff --git a/Modules/operator.c b/Modules/operator.c index c38ec1693a..25b0737dbf 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 **********************************************************/