mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
gc types needs to be allocated as such (closes #29398)
This commit is contained in:
parent
34e7e2ecb1
commit
ec977c3028
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ static XxoObject *
|
||||||
newXxoObject(PyObject *arg)
|
newXxoObject(PyObject *arg)
|
||||||
{
|
{
|
||||||
XxoObject *self;
|
XxoObject *self;
|
||||||
self = PyObject_New(XxoObject, (PyTypeObject*)Xxo_Type);
|
self = PyObject_GC_New(XxoObject, (PyTypeObject*)Xxo_Type);
|
||||||
if (self == NULL)
|
if (self == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
self->x_attr = NULL;
|
self->x_attr = NULL;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue