summaryrefslogtreecommitdiffstats
path: root/Python/errors.c
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-05-21 22:50:11 (GMT)
committerGitHub <noreply@github.com>2021-05-21 22:50:11 (GMT)
commit50b0d148a68072292832eb69bdf1815b8059355f (patch)
treefa1d73efadcf398b0c6dd33b364e13841d66b8a0 /Python/errors.c
parent856958d0e750a62bd5e6a231c3ed67aa0db32e11 (diff)
downloadcpython-50b0d148a68072292832eb69bdf1815b8059355f.zip
cpython-50b0d148a68072292832eb69bdf1815b8059355f.tar.gz
cpython-50b0d148a68072292832eb69bdf1815b8059355f.tar.bz2
bpo-44184: Fix subtype_dealloc() for freed type (GH-26274) (GH-26290)
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. (cherry picked from commit 615069eb08494d089bf24e43547fbc482ed699b8) Co-authored-by: Victor Stinner <vstinner@python.org> Co-authored-by: Victor Stinner <vstinner@python.org>
Diffstat (limited to 'Python/errors.c')
0 files changed, 0 insertions, 0 deletions