summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2012-06-24 11:54:51 (GMT)
committerGeorg Brandl <georg@python.org>2012-06-24 11:54:51 (GMT)
commit93b7d7e4b9c4115494132bbe82ca9851813e81d7 (patch)
treefcf3b489b76f5584e908d0cf97504856b744f3c2 /Modules
parent6cea65555caf2716b4633827715004ab0291a282 (diff)
downloadcpython-93b7d7e4b9c4115494132bbe82ca9851813e81d7.zip
cpython-93b7d7e4b9c4115494132bbe82ca9851813e81d7.tar.gz
cpython-93b7d7e4b9c4115494132bbe82ca9851813e81d7.tar.bz2
Fix a refleak in c82451eeb595.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/operator.c4
1 files changed, 1 insertions, 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 **********************************************************/