commit | 57b17ad6aeb821262aef41ffd31d1302f18e79c5 | [log] [tgz] |
---|---|---|
author | Tim Peters <tim.peters@gmail.com> | Sun Mar 31 02:59:48 2002 +0000 |
committer | Tim Peters <tim.peters@gmail.com> | Sun Mar 31 02:59:48 2002 +0000 |
tree | a3af9d97f1915ec13e0bb4d71d19a08fd2c6db5a | |
parent | 4c5be0ce09326d294ed252389fc8201fcd4390ff [diff] [blame] |
Add one more assert that indirectly interlocking conditions are consistent with each other.
diff --git a/Objects/obmalloc.c b/Objects/obmalloc.c index 019aa5b..cf2b477 100644 --- a/Objects/obmalloc.c +++ b/Objects/obmalloc.c
@@ -686,6 +686,7 @@ * 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) {