commit | bcb198385dee469d630a184182df9dc1463e2c47 | [log] [tgz] |
---|---|---|
author | Victor Stinner <vstinner@python.org> | Mon Jun 08 02:14:47 2020 +0200 |
committer | GitHub <noreply@github.com> | Mon Jun 08 02:14:47 2020 +0200 |
tree | 193bc5c3584732b506223a34f3215a03fd1be408 | |
parent | c96a61e8163c2d25ed4ac77cf96201fd0bdb945c [diff] |
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()).