]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-111178: Fix PyRangeIter_Type deallocator (#131162)
authorVictor Stinner <vstinner@python.org>
Thu, 13 Mar 2025 09:46:20 +0000 (10:46 +0100)
committerGitHub <noreply@github.com>
Thu, 13 Mar 2025 09:46:20 +0000 (10:46 +0100)
commit0c6c52f49605f757c4a125ca195a2123bd930b93
tree2d8c3af03d74458ed7159ea458e9ae6da108c460
parent36978f7ef370f3a7cd5888c5e4c8267ffaf3998e
gh-111178: Fix PyRangeIter_Type deallocator (#131162)

Don't use PyObject_Free() as tp_dealloc to avoid an undefined
behavior. Instead, use the default deallocator which just calls
tp_free which is PyObject_Free().
Objects/rangeobject.c