From: Pablo Galindo Salgado Date: Sat, 24 Jul 2021 14:25:54 +0000 (+0100) Subject: bpo-44676: Fix reference leaks in union_reduce (GH-27332) X-Git-Tag: v3.11.0a1~586 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8158e059e9952f08d19a18d3e9e021cee2393cd2;p=thirdparty%2FPython%2Fcpython.git bpo-44676: Fix reference leaks in union_reduce (GH-27332) Automerge-Triggered-By: GH:pablogsal --- diff --git a/Objects/unionobject.c b/Objects/unionobject.c index ad34dcad1725..9804d87c66cc 100644 --- a/Objects/unionobject.c +++ b/Objects/unionobject.c @@ -371,7 +371,7 @@ union_reduce(PyObject *self, PyObject *Py_UNUSED(ignored)) return NULL; } - return Py_BuildValue("O(O)", from_args, alias->args); + return Py_BuildValue("N(O)", from_args, alias->args); } static PyMemberDef union_members[] = {