[3.9] bpo-44184: Apply GH-26274 to the non-GC-type branch of subtype_dealloc (GH-27165) by miss-islington · Pull Request #27175 · python/cpython
The non-GC-type branch of subtype_dealloc is using the type of an object after freeing in the same unsafe way as GH-26274 fixes. (I believe the old news entry covers this change well enough.)
https://bugs.python.org/issue44184
(cherry picked from commit 074e765)
Co-authored-by: T. Wouters thomas@python.org