From 4563bf7300d9ba4d2bf1eee048355d96dacd15af Mon Sep 17 00:00:00 2001 From: Pablo Galindo Date: Sat, 24 Jul 2021 14:25:08 +0100 Subject: [PATCH] bpo-44676: Fix reference leaks in union_reduce --- Objects/unionobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/unionobject.c b/Objects/unionobject.c index ea4aed86f839eed..54cdedae4d92c98 100644 --- a/Objects/unionobject.c +++ b/Objects/unionobject.c @@ -445,7 +445,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[] = {