From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Fri, 23 Nov 2018 19:58:08 +0000 (-0800) Subject: bpo-35303: Fix a reference leak in _operator.c's methodcaller_repr(). (GH-10689) X-Git-Tag: v3.7.2rc1~105 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bc665b42ba3a372bc60451583bfaff41d8e1993d;p=thirdparty%2FPython%2Fcpython.git bpo-35303: Fix a reference leak in _operator.c's methodcaller_repr(). (GH-10689) (cherry picked from commit 5b83ef71d3060e1651d3680e805f13a1049c7d6d) Co-authored-by: Zackery Spytz --- 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);