bpo-35303: Fix a reference leak in _operator.c's methodcaller_repr(). (GH-10689)
This commit is contained in:
parent
1d817e4c82
commit
5b83ef71d3
|
@ -1583,6 +1583,7 @@ methodcaller_repr(methodcallerobject *mc)
|
|||
goto done;
|
||||
if (i >= numtotalargs) {
|
||||
i = -1;
|
||||
Py_DECREF(onerepr);
|
||||
break;
|
||||
}
|
||||
PyTuple_SET_ITEM(argreprs, i, onerepr);
|
||||
|
|
Loading…
Reference in New Issue