diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2023-09-01 09:16:09 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-01 09:16:09 (GMT) |
commit | 844f4c2e12a7c637d1de93dbbb0718be06553510 (patch) | |
tree | 8985afdbf9c614ca006d4a7c44578ff6586a727d /Python | |
parent | 044b8b3b6a65e6651b161e3badfa5d57c666db19 (diff) | |
download | cpython-844f4c2e12a7c637d1de93dbbb0718be06553510.zip cpython-844f4c2e12a7c637d1de93dbbb0718be06553510.tar.gz cpython-844f4c2e12a7c637d1de93dbbb0718be06553510.tar.bz2 |
gh-108727: Fix segfault due to missing tp_dealloc definition for CounterOptimizer_Type (GH-108734)
Diffstat (limited to 'Python')
-rw-r--r-- | Python/optimizer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/optimizer.c b/Python/optimizer.c index c311a03..7472f52 100644 --- a/Python/optimizer.c +++ b/Python/optimizer.c @@ -289,6 +289,7 @@ static PyTypeObject CounterOptimizer_Type = { .tp_itemsize = 0, .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_DISALLOW_INSTANTIATION, .tp_methods = counter_methods, + .tp_dealloc = (destructor)PyObject_Del, }; PyObject * |