summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d
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 /Misc/NEWS.d
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 'Misc/NEWS.d')
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2021-05-21-01-42-45.bpo-44184.9qOptC.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2021-05-21-01-42-45.bpo-44184.9qOptC.rst b/Misc/NEWS.d/next/Core and Builtins/2021-05-21-01-42-45.bpo-44184.9qOptC.rst
new file mode 100644
index 0000000..3aba9a5
--- /dev/null
+++ b/Misc/NEWS.d/next/Core and Builtins/2021-05-21-01-42-45.bpo-44184.9qOptC.rst
@@ -0,0 +1,3 @@
+Fix a crash at Python exit when a deallocator function removes the last strong
+reference to a heap type.
+Patch by Victor Stinner.