summaryrefslogtreecommitdiff
path: root/Python/frozenmain.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-12-02 23:15:22 +0200
committerSerhiy Storchaka <storchaka@gmail.com>2016-12-02 23:15:22 +0200
commit43ebbf7db2d3d3297e96693fd91ac8a654631438 (patch)
tree29bd29d34fb300890dd0559befc06f4e0adc61d7 /Python/frozenmain.c
parentbf4d9c8ae56c531f020b58c10c99e04ac17a4eff (diff)
parentb9210b0f24ee0ba5861dffbaa42559a409a71a3e (diff)
downloadcpython-43ebbf7db2d3d3297e96693fd91ac8a654631438.tar.gz
Issue #21818: Fixed references to classes that have names matching with module
names.
Diffstat (limited to 'Python/frozenmain.c')
-rw-r--r--Python/frozenmain.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Python/frozenmain.c b/Python/frozenmain.c
index de8bd35453..769b33d0ee 100644
--- a/Python/frozenmain.c
+++ b/Python/frozenmain.c
@@ -99,7 +99,9 @@ Py_FrozenMain(int argc, char **argv)
#ifdef MS_WINDOWS
PyWinFreeze_ExeTerm();
#endif
- Py_Finalize();
+ if (Py_FinalizeEx() < 0) {
+ sts = 120;
+ }
error:
PyMem_RawFree(argv_copy);