Skip to content

Commit 0f0cbef

Browse files
Apply suggestions from code review
Co-authored-by: Peter Bierma <[email protected]>
1 parent da72a0b commit 0f0cbef

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
Fix: ``atexit_callfuncs`` need to atexit_cleanup the state when copy is NULL
2-
to avoid the low memory error then recursive error.
1+
Fix hang during finalization when attempting to call :mod:`atexit` handlers under no memory.

Modules/atexitmodule.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ atexit_callfuncs(struct atexit_state *state)
112112
{
113113
PyErr_FormatUnraisable("Exception ignored while "
114114
"copying atexit callbacks");
115-
// gh-140080: need to cleanup to prevent recursive when low memory
116115
atexit_cleanup(state);
117116
return;
118117
}

0 commit comments

Comments
 (0)