]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-38631: Avoid Py_FatalError() in _memory_release() (GH-18214)
authorVictor Stinner <vstinner@python.org>
Mon, 27 Jan 2020 21:37:44 +0000 (22:37 +0100)
committerGitHub <noreply@github.com>
Mon, 27 Jan 2020 21:37:44 +0000 (22:37 +0100)
commit47ee8a6063c22ec272fe7a2d95d12f7811ebb48b
tree8586b166c64e8a61e7f16d73287c38b6e4584303
parenta94c6b61aa5c09237b8105e5aee638cd54197b6f
bpo-38631: Avoid Py_FatalError() in _memory_release() (GH-18214)

If the export count is negative, _memory_release() now raises a
SystemError and returns -1, rather than calling Py_FatalError()
which aborts the process.
Objects/memoryobject.c