Skip to content

Commit 7cdfb7c

Browse files
committed
fix: atexit_cleanup the state
Signed-off-by: yihong0618 <[email protected]>
1 parent d6dd64a commit 7cdfb7c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Modules/atexitmodule.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ atexit_callfuncs(struct atexit_state *state)
112112
{
113113
PyErr_FormatUnraisable("Exception ignored while "
114114
"copying atexit callbacks");
115+
// gh-140080: need to cleanup
116+
atexit_cleanup(state);
115117
return;
116118
}
117119

0 commit comments

Comments
 (0)