]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-45061: Detect Py_DECREF(Py_True) bug (GH-28089)
authorVictor Stinner <vstinner@python.org>
Tue, 31 Aug 2021 16:05:15 +0000 (18:05 +0200)
committerGitHub <noreply@github.com>
Tue, 31 Aug 2021 16:05:15 +0000 (18:05 +0200)
commit4300352000beed22fb525ec45fd331918d206528
treed85e14e3f00ce829258f890ee2e71698c9adf713
parent9a7ec2fcdee2da9e080ca459d4c240776df72567
bpo-45061: Detect Py_DECREF(Py_True) bug (GH-28089)

Add a deallocator to the bool type to detect refcount bugs in C
extensions which call Py_DECREF(Py_True) or Py_DECREF(Py_False) by
mistake.
Misc/NEWS.d/next/C API/2021-08-31-15-21-36.bpo-45061.ZH0HVe.rst [new file with mode: 0644]
Objects/boolobject.c
Objects/object.c