Add one more assert that indirectly interlocking conditions are consistent

with each other.
This commit is contained in:
Tim Peters 2002-03-31 02:59:48 +00:00
parent 4c5be0ce09
commit 57b17ad6ae
1 changed files with 1 additions and 0 deletions

View File

@ -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) {