diff options
author | Victor Stinner <vstinner@python.org> | 2021-05-21 17:19:54 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-21 17:19:54 (GMT) |
commit | 615069eb08494d089bf24e43547fbc482ed699b8 (patch) | |
tree | 06d4a3c69bb0f8078f4021aee8c19d2924a2f774 /Python/fileutils.c | |
parent | 642fdfdc04e8e40c2cd3e65d67b09fac472bb345 (diff) | |
download | cpython-615069eb08494d089bf24e43547fbc482ed699b8.zip cpython-615069eb08494d089bf24e43547fbc482ed699b8.tar.gz cpython-615069eb08494d089bf24e43547fbc482ed699b8.tar.bz2 |
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.
Diffstat (limited to 'Python/fileutils.c')
0 files changed, 0 insertions, 0 deletions