mirror of
https://github.com/python/cpython.git
synced 2026-04-22 03:41:08 +00:00
bpo-35303: Fix a reference leak in _operator.c's methodcaller_repr(). (GH-10689)
(cherry picked from commit 5b83ef71d3)
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
This commit is contained in:
parent
903a3e8d67
commit
bc665b42ba
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue