diff options
| author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-11-23 11:58:08 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-11-23 11:58:08 -0800 |
| commit | bc665b42ba3a372bc60451583bfaff41d8e1993d (patch) | |
| tree | 05dfc904091247178cc389969e681809042c29db /Modules/_operator.c | |
| parent | 903a3e8d67b61594c0fa17fb201769ca924b38f8 (diff) | |
| download | cpython-git-bc665b42ba3a372bc60451583bfaff41d8e1993d.tar.gz | |
bpo-35303: Fix a reference leak in _operator.c's methodcaller_repr(). (GH-10689)
(cherry picked from commit 5b83ef71d3060e1651d3680e805f13a1049c7d6d)
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Diffstat (limited to 'Modules/_operator.c')
| -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 f2fd65695f..51daa1ff6c 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); |
