bpo-35303: Fix a reference leak in _operator.c's methodcaller_repr(). (GH-10689)

This commit is contained in:
Zackery Spytz 2018-11-23 12:26:46 -07:00 committed by Serhiy Storchaka
parent 1d817e4c82
commit 5b83ef71d3
1 changed files with 1 additions and 0 deletions

View File

@ -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);