diff options
Diffstat (limited to 'Modules/main.c')
-rw-r--r-- | Modules/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/main.c b/Modules/main.c index 47d0574..b47ac70 100644 --- a/Modules/main.c +++ b/Modules/main.c @@ -574,13 +574,13 @@ _Py_RunMain(void) int exitcode = 0; pymain_run_python(&exitcode); + if (Py_FinalizeEx() < 0) { /* Value unlikely to be confused with a non-error exit status or other special meaning */ exitcode = 120; } -done: pymain_free(); if (_Py_UnhandledKeyboardInterrupt) { |