summaryrefslogtreecommitdiff
path: root/Python/frozenmain.c
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@microsoft.com>2016-12-03 11:24:02 -0800
committerSteve Dower <steve.dower@microsoft.com>2016-12-03 11:24:02 -0800
commit9ca70643e30ef19ceb39644dde496b7dfc7fa6e6 (patch)
tree9dbef5e103e88ce6c36477306f285c16813e0866 /Python/frozenmain.c
parente724fe060b189a4879fd9713a24bbfe6c9eb008e (diff)
parent43ebbf7db2d3d3297e96693fd91ac8a654631438 (diff)
downloadcpython-9ca70643e30ef19ceb39644dde496b7dfc7fa6e6.tar.gz
Issue #28846: Various installer fixes
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);