Mercurial > cpython-lru_cache-weakref
diff Modules/operator.c @ 77703:9875deb347b8
Fix a refleak in c82451eeb595.
| author | Georg Brandl <georg@python.org> |
|---|---|
| date | Sun, 24 Jun 2012 13:54:51 +0200 |
| parents | c82451eeb595 |
| children | b3f84417743a |
line wrap: on
line diff
--- a/Modules/operator.c Sun Jun 24 13:48:32 2012 +0200 +++ b/Modules/operator.c Sun Jun 24 13:54:51 2012 +0200 @@ -292,9 +292,7 @@ PyBuffer_Release(&view_b); } - result = PyBool_FromLong(rc); - Py_INCREF(result); - return result; + return PyBool_FromLong(rc); } /* operator methods **********************************************************/
