]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40887: Don't use finalized free lists (GH-20700)
authorVictor Stinner <vstinner@python.org>
Mon, 8 Jun 2020 00:14:47 +0000 (02:14 +0200)
committerGitHub <noreply@github.com>
Mon, 8 Jun 2020 00:14:47 +0000 (02:14 +0200)
commitbcb198385dee469d630a184182df9dc1463e2c47
tree193bc5c3584732b506223a34f3215a03fd1be408
parentc96a61e8163c2d25ed4ac77cf96201fd0bdb945c
bpo-40887: Don't use finalized free lists (GH-20700)

In debug mode, ensure that free lists are no longer used after being
finalized. Set numfree to -1 in finalization functions
(eg. _PyList_Fini()), and then check that numfree is not equal to -1
before using a free list (e.g list_dealloc()).
Objects/floatobject.c
Objects/frameobject.c
Objects/genobject.c
Objects/listobject.c
Objects/tupleobject.c
Python/context.c