]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-38400 Don't check for NULL linked list pointers in _PyObject_IsFreed (GH-16630)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 19 Jan 2020 23:43:12 +0000 (15:43 -0800)
committerGitHub <noreply@github.com>
Sun, 19 Jan 2020 23:43:12 +0000 (15:43 -0800)
commita360070121836dd29b691f5d6d14bcfb371d8029
treee258d50280e9013842b51e99aac40f3828a89a9c
parent296383b6d05f9617283aeb5b601106f84b016198
bpo-38400 Don't check for NULL linked list pointers in _PyObject_IsFreed (GH-16630)

Some objects like Py_None are not initialized with conventional means
that prepare the circular linked list pointers, leaving them unlinked
from the rest of the objects. For those objects, NULL pointers does
not mean that they are freed, so we need to skip the check in those
cases.
(cherry picked from commit 36e33c360ed7716a2b5ab2b53210da81f8ce1295)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Objects/object.c