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

Miss Islington (bot) webhook-mailer at python.org
Fri Nov 23 14:58:12 EST 2018


https://github.com/python/cpython/commit/bc665b42ba3a372bc60451583bfaff41d8e1993d
commit: bc665b42ba3a372bc60451583bfaff41d8e1993d
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2018年11月23日T11:58:08-08:00
summary:
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 at gmail.com>
files:
M Modules/_operator.c
diff --git a/Modules/_operator.c b/Modules/_operator.c
index f2fd65695f2e..51daa1ff6cfb 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);


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /