]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Issue #15893: Improve error handling in main() and Py_FrozenMain()
authorVictor Stinner <victor.stinner@gmail.com>
Sat, 27 Jul 2013 00:39:09 +0000 (02:39 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Sat, 27 Jul 2013 00:39:09 +0000 (02:39 +0200)
commitc588feeea94788e164286dbd757e34829a2eefb5
tree4568eb715f50b0d45d3e7b9fd63b420b6e86ffe7
parent739cf4e3e6d7370ab6ddfc96637218eadfe81a13
Issue #15893: Improve error handling in main() and Py_FrozenMain()

* handle _PyMem_RawStrdup() failure
* Py_FrozenMain() releases memory on error
* Py_FrozenMain() duplicates the old locale, as done in main()
Modules/python.c
Python/frozenmain.c