summaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
Diffstat (limited to 'Python')
-rw-r--r--Python/frozenmain.c4
-rw-r--r--Python/import.c1
2 files changed, 2 insertions, 3 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;
}
diff --git a/Python/import.c b/Python/import.c
index 2368143c63..fe24b2816f 100644
--- a/Python/import.c
+++ b/Python/import.c
@@ -692,7 +692,6 @@ static int
init_builtin(name)
char *name;
{
- PyInterpreterState *interp = PyThreadState_Get()->interp;
struct _inittab *p;
PyObject *mod;