| commit | 615069eb08494d089bf24e43547fbc482ed699b8 | [log] [tgz] |
|---|---|---|
| author | Victor Stinner <vstinner@python.org> | Fri May 21 19:19:54 2021 +0200 |
| committer | GitHub <noreply@github.com> | Fri May 21 19:19:54 2021 +0200 |
| tree | 06d4a3c69bb0f8078f4021aee8c19d2924a2f774 | |
| parent | 642fdfdc04e8e40c2cd3e65d67b09fac472bb345 [diff] |
bpo-44184: Fix subtype_dealloc() for freed type (GH-26274) Fix a crash at Python exit when a deallocator function removes the last strong reference to a heap type. Don't read type memory after calling basedealloc() since basedealloc() can deallocate the type and free its memory. _PyMem_IsPtrFreed() argument is now constant.