]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-111178: Fix _PyLegacyEventHandler_Type deallocator (#131193)
authorVictor Stinner <vstinner@python.org>
Fri, 14 Mar 2025 09:23:54 +0000 (10:23 +0100)
committerGitHub <noreply@github.com>
Fri, 14 Mar 2025 09:23:54 +0000 (10:23 +0100)
commit0ddfb5717f761fcab7929957eca65044116a96a4
treed5219aa5a183c30f05503116b939e903a7f18dca
parent96492785b202a92af1b71f8c011ea839ca3ebb07
gh-111178: Fix _PyLegacyEventHandler_Type deallocator (#131193)

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().
Python/legacy_tracing.c