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

Automerge-Triggered-By: GH:pablogsal
This commit is contained in:
Pablo Galindo Salgado 2021-07-24 15:25:54 +01:00 committed by GitHub
parent 0828423127
commit 8158e059e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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[] = {