diff options
-rw-r--r-- | Objects/obmalloc.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) { |