From 57b17ad6aeb821262aef41ffd31d1302f18e79c5 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Sun, 31 Mar 2002 02:59:48 +0000 Subject: Add one more assert that indirectly interlocking conditions are consistent with each other. --- Objects/obmalloc.c | 1 + 1 file changed, 1 insertion(+) 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 @@ _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) { -- cgit v0.12