diff options
author | Steve Dower <steve.dower@python.org> | 2019-06-29 21:28:43 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-29 21:28:43 (GMT) |
commit | ac14632c756fec561e4b868b8793334bd7b22241 (patch) | |
tree | f3aed7849d351f03b6322fcc3f13cb413ce99c15 /PC | |
parent | 9048c49322a5229ff99610aba35913ffa295ebb7 (diff) | |
download | cpython-ac14632c756fec561e4b868b8793334bd7b22241.zip cpython-ac14632c756fec561e4b868b8793334bd7b22241.tar.gz cpython-ac14632c756fec561e4b868b8793334bd7b22241.tar.bz2 |
bpo-37369: Fixes crash when reporting fatal error (GH-14468)
Diffstat (limited to 'PC')
-rw-r--r-- | PC/python_uwp.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/PC/python_uwp.cpp b/PC/python_uwp.cpp index 73e0d82..2352f45 100644 --- a/PC/python_uwp.cpp +++ b/PC/python_uwp.cpp @@ -166,12 +166,12 @@ wmain(int argc, wchar_t **argv) PyPreConfig_InitPythonConfig(&preconfig); status = Py_PreInitializeFromArgs(&preconfig, argc, argv); if (PyStatus_Exception(status)) { - goto fail; + goto fail_without_config; } status = PyConfig_InitPythonConfig(&config); if (PyStatus_Exception(status)) { - goto fail; + goto fail_without_config; } status = PyConfig_SetArgv(&config, argc, argv); @@ -233,6 +233,7 @@ wmain(int argc, wchar_t **argv) fail: PyConfig_Clear(&config); +fail_without_config: if (PyStatus_IsExit(status)) { return status.exitcode; } |