[Python-checkins] bpo-44676: Fix reference leaks in union_reduce (GH-27332)

miss-islington webhook-mailer at python.org
Sat Jul 24 10:26:04 EDT 2021


https://github.com/python/cpython/commit/8158e059e9952f08d19a18d3e9e021cee2393cd2
commit: 8158e059e9952f08d19a18d3e9e021cee2393cd2
branch: main
author: Pablo Galindo Salgado <Pablogsal at gmail.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2021-07-24T07:25:54-07:00
summary:

bpo-44676: Fix reference leaks in union_reduce (GH-27332)



Automerge-Triggered-By: GH:pablogsal

files:
M Objects/unionobject.c

diff --git a/Objects/unionobject.c b/Objects/unionobject.c
index ad34dcad1725f..9804d87c66ccd 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[] = {



More information about the Python-checkins mailing list