Add a missing Py_DECREF in the sq_item slot wrapper.

This commit is contained in:
Mike Owen authored and Gustavo J. A. M. Carneiro committed 2009-11-18 22:31:57 +00:00
1 parent 881b1b6f01
commit 0f28fa25ee
1 file changed
+1
+1
View File
@@ -278,6 +278,7 @@ static PyObject*
args = Py_BuildValue("(i)", py_i);
result = %(method_name)s(py_self, args, NULL);
Py_DECREF(args);
if (PyErr_ExceptionMatches(PyExc_IndexError) ||
PyErr_ExceptionMatches(PyExc_StopIteration)) {
Py_XDECREF(result);