Fix a refleak in c82451eeb595.

This commit is contained in:
Georg Brandl 2012-06-24 13:54:51 +02:00
parent 6cea65555c
commit 93b7d7e4b9
1 changed files with 1 additions and 3 deletions

View File

@ -292,9 +292,7 @@ compare_digest(PyObject *self, PyObject *args)
PyBuffer_Release(&view_b); PyBuffer_Release(&view_b);
} }
result = PyBool_FromLong(rc); return PyBool_FromLong(rc);
Py_INCREF(result);
return result;
} }
/* operator methods **********************************************************/ /* operator methods **********************************************************/