gh-111178: Fix _PyLegacyEventHandler_Type deallocator by vstinner · Pull Request #131193 · python/cpython

@vstinner

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().

plashchynski pushed a commit to plashchynski/cpython that referenced this pull request

Mar 17, 2025
…31193)

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().