From bdac32e9fe25fdb97a7172a93aabd1ffead89462 Mon Sep 17 00:00:00 2001 From: Max Bernstein Date: Wed, 30 Oct 2019 18:08:06 -0700 Subject: [PATCH] closes bpo-38648: Remove double tp_free slot in Python-ast.c. (GH-17002) This looks like a typo due to copy-paste. --- Parser/asdl_c.py | 1 - Python/Python-ast.c | 1 - 2 files changed, 2 deletions(-) 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 @@ 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}, }; 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}, };