diff --git a/Parser/asdl_c.py b/Parser/asdl_c.py index 3a821cc9265..52495e9b451 100755 --- a/Parser/asdl_c.py +++ b/Parser/asdl_c.py @@ -751,7 +751,6 @@ static PyType_Slot AST_type_slots[] = { {Py_tp_init, ast_type_init}, {Py_tp_alloc, PyType_GenericAlloc}, {Py_tp_new, PyType_GenericNew}, - {Py_tp_free, PyType_GenericNew}, {Py_tp_free, PyObject_GC_Del}, {0, 0}, }; diff --git a/Python/Python-ast.c b/Python/Python-ast.c index e2c703d8155..d5465d795cf 100644 --- a/Python/Python-ast.c +++ b/Python/Python-ast.c @@ -1244,7 +1244,6 @@ static PyType_Slot AST_type_slots[] = { {Py_tp_init, ast_type_init}, {Py_tp_alloc, PyType_GenericAlloc}, {Py_tp_new, PyType_GenericNew}, - {Py_tp_free, PyType_GenericNew}, {Py_tp_free, PyObject_GC_Del}, {0, 0}, };