Add a missing Py_DECREF in the sq_item slot wrapper.
This commit is contained in:
1 parent
881b1b6f01
commit
0f28fa25ee
1 file changed
+1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user