]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-44676: Fix reference leaks in union_reduce (GH-27332)
authorPablo Galindo Salgado <Pablogsal@gmail.com>
Sat, 24 Jul 2021 14:25:54 +0000 (15:25 +0100)
committerGitHub <noreply@github.com>
Sat, 24 Jul 2021 14:25:54 +0000 (07:25 -0700)
Automerge-Triggered-By: GH:pablogsal
Objects/unionobject.c

index ad34dcad1725fbd265292dc73a278c1e3bda571c..9804d87c66ccd2e46676122d90e73fe3c0cd47e5 100644 (file)
@@ -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[] = {