gh-111178: Fix _PyLegacyEventHandler_Type deallocator by vstinner · Pull Request #131193 · python/cpython
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().
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters