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()).
V
Victor Stinner committed
bcb198385dee469d630a184182df9dc1463e2c47
Parent: c96a61e
Committed by GitHub <noreply@github.com>
on 6/8/2020, 12:14:47 AM