diff options
author | Georg Brandl <georg@python.org> | 2012-06-24 11:54:51 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2012-06-24 11:54:51 (GMT) |
commit | 93b7d7e4b9c4115494132bbe82ca9851813e81d7 (patch) | |
tree | fcf3b489b76f5584e908d0cf97504856b744f3c2 /Modules | |
parent | 6cea65555caf2716b4633827715004ab0291a282 (diff) | |
download | cpython-93b7d7e4b9c4115494132bbe82ca9851813e81d7.zip cpython-93b7d7e4b9c4115494132bbe82ca9851813e81d7.tar.gz cpython-93b7d7e4b9c4115494132bbe82ca9851813e81d7.tar.bz2 |
Fix a refleak in c82451eeb595.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/operator.c | 4 |
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 **********************************************************/ |