]> granicus.if.org Git - python/commitdiff
Fix a refleak in c82451eeb595.
authorGeorg Brandl <georg@python.org>
Sun, 24 Jun 2012 11:54:51 +0000 (13:54 +0200)
committerGeorg Brandl <georg@python.org>
Sun, 24 Jun 2012 11:54:51 +0000 (13:54 +0200)
Modules/operator.c

index c38ec1693a529b4839d92fe9c17c6305a09d93b0..25b0737dbfaa7bdeb50b1c7795f1a57eda589611 100644 (file)
@@ -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 **********************************************************/