From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Fri, 23 Nov 2018 19:58:25 +0000 (-0800) Subject: bpo-35303: Fix a reference leak in _operator.c's methodcaller_repr(). (GH-10689) X-Git-Tag: v3.6.8rc1~83 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8c70c08f0fb5795904442e95a2987ea18aed2899;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 fb8eafc6793d..af05f1c296bd 100644 --- a/Modules/_operator.c +++ b/Modules/_operator.c @@ -1057,6 +1057,7 @@ methodcaller_repr(methodcallerobject *mc) goto done; if (i >= numtotalargs) { i = -1; + Py_DECREF(onerepr); break; } PyTuple_SET_ITEM(argreprs, i, onerepr);