closes bpo-38648: Remove double tp_free slot in Python-ast.c. (GH-17002)

This looks like a typo due to copy-paste.
This commit is contained in:
Max Bernstein 2019-10-30 18:08:06 -07:00 committed by Benjamin Peterson
parent e835b31d2b
commit bdac32e9fe
2 changed files with 0 additions and 2 deletions

View file

@ -751,7 +751,6 @@ def visitModule(self, mod):
{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},
};

1
Python/Python-ast.c generated
View file

@ -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},
};