From 93b7d7e4b9c4115494132bbe82ca9851813e81d7 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sun, 24 Jun 2012 13:54:51 +0200 Subject: Fix a refleak in c82451eeb595. --- Modules/operator.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Modules/operator.c b/Modules/operator.c index c38ec16..25b0737 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 **********************************************************/ -- cgit v0.12