summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorZackery Spytz <zspytz@gmail.com>2018-11-23 19:26:46 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2018-11-23 19:26:46 (GMT)
commit5b83ef71d3060e1651d3680e805f13a1049c7d6d (patch)
tree5d21560bbf610f31a02222ee884bf9a1dbe20e6f /Modules
parent1d817e4c8259f49602eefe9729743f6d9d748e8d (diff)
downloadcpython-5b83ef71d3060e1651d3680e805f13a1049c7d6d.zip
cpython-5b83ef71d3060e1651d3680e805f13a1049c7d6d.tar.gz
cpython-5b83ef71d3060e1651d3680e805f13a1049c7d6d.tar.bz2
bpo-35303: Fix a reference leak in _operator.c's methodcaller_repr(). (GH-10689)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_operator.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/_operator.c b/Modules/_operator.c
index dc67820..3bf8c12 100644
--- a/Modules/_operator.c
+++ b/Modules/_operator.c
@@ -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);