summaryrefslogtreecommitdiff
path: root/Python/frozenmain.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/frozenmain.c')
-rw-r--r--Python/frozenmain.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/frozenmain.c b/Python/frozenmain.c
index d5a398b075..755033c9ba 100644
--- a/Python/frozenmain.c
+++ b/Python/frozenmain.c
@@ -77,6 +77,6 @@ Py_FrozenMain(argc, argv)
if (inspect && isatty((int)fileno(stdin)))
sts = PyRun_AnyFile(stdin, "<stdin>") != 0;
- Py_Exit(sts);
- /*NOTREACHED*/
+ Py_Finalize();
+ return sts;
}