diff options
author | Zackery Spytz <zspytz@gmail.com> | 2018-07-03 19:47:22 (GMT) |
---|---|---|
committer | Antoine Pitrou <pitrou@free.fr> | 2018-07-03 19:47:22 (GMT) |
commit | d8cba5d16f1333fd625726fc72e66afbd45b8d00 (patch) | |
tree | 6aa57f4d44036535b4cdf7895e92cd235a5b8f4f /Misc/NEWS.d | |
parent | 831c29721dcb1b768c6315a4b8a4059c4c97ee8b (diff) | |
download | cpython-d8cba5d16f1333fd625726fc72e66afbd45b8d00.zip cpython-d8cba5d16f1333fd625726fc72e66afbd45b8d00.tar.gz cpython-d8cba5d16f1333fd625726fc72e66afbd45b8d00.tar.bz2 |
bpo-24596: Decref module in PyRun_SimpleFileExFlags() on SystemExit (GH-7918)
PyErr_Print() will not return when the exception is a SystemExit, so
decref the __main__ module object in that case.
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2018-06-25-16-54-05.bpo-24596.Rkwova.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2018-06-25-16-54-05.bpo-24596.Rkwova.rst b/Misc/NEWS.d/next/Core and Builtins/2018-06-25-16-54-05.bpo-24596.Rkwova.rst new file mode 100644 index 0000000..1b33fd4 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2018-06-25-16-54-05.bpo-24596.Rkwova.rst @@ -0,0 +1,2 @@ +Decref the module object in :c:func:`PyRun_SimpleFileExFlags` before calling +:c:func:`PyErr_Print()`. Patch by Zackery Spytz. |