Kaydet (Commit) 57b17ad6 authored tarafından Tim Peters's avatar Tim Peters

Add one more assert that indirectly interlocking conditions are consistent

with each other.
üst 4c5be0ce
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment