bpo-24596: Decref module in PyRun_SimpleFileExFlags() on SystemExit by ZackerySpytz · Pull Request #7918 · python/cpython

@ZackerySpytz

PyErr_Print() will not return when the exception is a SystemExit, so
decref the __main__ module object in that case.

pitrou

pitrou

@ZackerySpytz

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

Jul 3, 2018
…ythonGH-7918)

PyErr_Print() will not return when the exception is a SystemExit, so
decref the __main__ module object in that case.
(cherry picked from commit d8cba5d)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

Jul 3, 2018
…ythonGH-7918)

PyErr_Print() will not return when the exception is a SystemExit, so
decref the __main__ module object in that case.
(cherry picked from commit d8cba5d)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>

pitrou pushed a commit that referenced this pull request

Jul 3, 2018
…H-7918) (GH-8070)

PyErr_Print() will not return when the exception is a SystemExit, so
decref the __main__ module object in that case.
(cherry picked from commit d8cba5d)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>

pitrou pushed a commit that referenced this pull request

Jul 3, 2018
…H-7918) (GH-8069)

PyErr_Print() will not return when the exception is a SystemExit, so
decref the __main__ module object in that case.
(cherry picked from commit d8cba5d)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>