diff --git a/Modules/main.c b/Modules/main.c index 5140c4ff769..00b2e4c0794 100644 --- a/Modules/main.c +++ b/Modules/main.c @@ -241,7 +241,7 @@ Py_Main(argc, argv) (filename != NULL || command != NULL)) sts = PyRun_AnyFile(stdin, "") != 0; - Py_Cleanup(); + Py_Finalize(); return sts; }