gh-140080: Clear `atexit` callbacks when memory allocation fails during finalization (GH-140103)
This fixes a regression introduced by GH-136004, in which finalization would hang while executing atexit handlers if the system was out of memory. --------- Signed-off-by: yihong0618 <zouzou0208@gmail.com> Co-authored-by: Peter Bierma <zintensitydev@gmail.com> Co-authored-by: Victor Stinner <vstinner@python.org>
Y
yihong committed
a05aece5438409fd76f193c564a34e2ca63e278f
Parent: 32c2649
Committed by GitHub <noreply@github.com>
on 10/15/2025, 1:49:55 PM