diff options
author | Zackery Spytz <zspytz@gmail.com> | 2018-11-23 19:26:46 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2018-11-23 19:26:46 (GMT) |
commit | 5b83ef71d3060e1651d3680e805f13a1049c7d6d (patch) | |
tree | 5d21560bbf610f31a02222ee884bf9a1dbe20e6f /Modules | |
parent | 1d817e4c8259f49602eefe9729743f6d9d748e8d (diff) | |
download | cpython-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.c | 1 |
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); |