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;
|
goto done;
|
||||||
if (i >= numtotalargs) {
|
if (i >= numtotalargs) {
|
||||||
i = -1;
|
i = -1;
|
||||||
|
Py_DECREF(onerepr);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
PyTuple_SET_ITEM(argreprs, i, onerepr);
|
PyTuple_SET_ITEM(argreprs, i, onerepr);
|
||||||
|
|
Loading…
Reference in New Issue