From 8158e059e9952f08d19a18d3e9e021cee2393cd2 Mon Sep 17 00:00:00 2001 From: Pablo Galindo Salgado Date: Sat, 24 Jul 2021 15:25:54 +0100 Subject: bpo-44676: Fix reference leaks in union_reduce (GH-27332) Automerge-Triggered-By: GH:pablogsal --- Objects/unionobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/unionobject.c b/Objects/unionobject.c index ad34dca..9804d87 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[] = { -- cgit v0.12