From: Max Bernstein Date: Thu, 31 Oct 2019 01:08:06 +0000 (-0700) Subject: closes bpo-38648: Remove double tp_free slot in Python-ast.c. (GH-17002) X-Git-Tag: v3.9.0a1~99 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bdac32e9fe25fdb97a7172a93aabd1ffead89462;p=thirdparty%2FPython%2Fcpython.git closes bpo-38648: Remove double tp_free slot in Python-ast.c. (GH-17002) This looks like a typo due to copy-paste. --- diff --git a/Parser/asdl_c.py b/Parser/asdl_c.py index 3a821cc9265c..52495e9b451c 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 e2c703d81555..d5465d795cfa 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}, };