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

(cherry picked from commit 5b83ef71d3)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
This commit is contained in:
Miss Islington (bot) 2018-11-23 11:58:08 -08:00 committed by GitHub
parent 903a3e8d67
commit bc665b42ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);