diff options
Diffstat (limited to 'Objects/genericaliasobject.c')
-rw-r--r-- | Objects/genericaliasobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/genericaliasobject.c b/Objects/genericaliasobject.c index 48a8be1..803912b 100644 --- a/Objects/genericaliasobject.c +++ b/Objects/genericaliasobject.c @@ -646,11 +646,11 @@ PyTypeObject Py_GenericAliasType = { PyObject * Py_GenericAlias(PyObject *origin, PyObject *args) { - gaobject *alias = PyObject_GC_New(gaobject, &Py_GenericAliasType); + gaobject *alias = (gaobject*) PyType_GenericAlloc( + (PyTypeObject *)&Py_GenericAliasType, 0); if (alias == NULL) { return NULL; } - _PyObject_GC_TRACK(alias); if (!setup_ga(alias, origin, args)) { Py_DECREF(alias); return NULL; |