We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09e5877 commit 935250dCopy full SHA for 935250d
Include/internal/pystate.h
@@ -118,6 +118,9 @@ PyAPI_FUNC(void) _PyRuntimeState_Fini(_PyRuntimeState *);
118
Return NULL on success, or return an error message on failure. */
119
PyAPI_FUNC(_PyInitError) _PyRuntime_Initialize(void);
120
121
+PyAPI_FUNC(void) _PyRuntime_Finalize(void);
122
+
123
124
#define _Py_CURRENTLY_FINALIZING(tstate) \
125
(_PyRuntime.finalizing == tstate)
126
Modules/main.c
@@ -660,6 +660,8 @@ pymain_free_raw(_PyMain *pymain)
660
orig_argc = 0;
661
orig_argv = NULL;
662
663
+ _PyRuntime_Finalize();
664
665
PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc);
666
}
667
0 commit comments