summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorPablo Galindo Salgado <Pablogsal@gmail.com>2021-07-24 14:25:54 (GMT)
committerGitHub <noreply@github.com>2021-07-24 14:25:54 (GMT)
commit8158e059e9952f08d19a18d3e9e021cee2393cd2 (patch)
tree81074ef28cd1bc4e866af204395c7545b00a7049 /Objects
parent08284231275ac9cc60ae27eab2338805919d8881 (diff)
downloadcpython-8158e059e9952f08d19a18d3e9e021cee2393cd2.zip
cpython-8158e059e9952f08d19a18d3e9e021cee2393cd2.tar.gz
cpython-8158e059e9952f08d19a18d3e9e021cee2393cd2.tar.bz2
bpo-44676: Fix reference leaks in union_reduce (GH-27332)
Automerge-Triggered-By: GH:pablogsal
Diffstat (limited to 'Objects')
-rw-r--r--Objects/unionobject.c2
1 files changed, 1 insertions, 1 deletions
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[] = {