mirror of https://github.com/python/cpython
Add one more assert that indirectly interlocking conditions are consistent
with each other.
This commit is contained in:
parent
4c5be0ce09
commit
57b17ad6ae
|
@ -686,6 +686,7 @@ _PyMalloc_Free(void *p)
|
|||
* was full and is in no list -- it's not in the freeblocks
|
||||
* list in any case).
|
||||
*/
|
||||
assert(pool->ref.count > 0); /* else it was empty */
|
||||
*(block **)p = lastfree = pool->freeblock;
|
||||
pool->freeblock = (block *)p;
|
||||
if (lastfree) {
|
||||
|
|
Loading…
Reference in New Issue