summaryrefslogtreecommitdiffstats
path: root/Python/fileutils.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2021-05-21 17:19:54 (GMT)
committerGitHub <noreply@github.com>2021-05-21 17:19:54 (GMT)
commit615069eb08494d089bf24e43547fbc482ed699b8 (patch)
tree06d4a3c69bb0f8078f4021aee8c19d2924a2f774 /Python/fileutils.c
parent642fdfdc04e8e40c2cd3e65d67b09fac472bb345 (diff)
downloadcpython-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