mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Add one more assert that indirectly interlocking conditions are consistent
with each other.
This commit is contained in:
parent
4c5be0ce09
commit
57b17ad6ae
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue