diff --git a/Objects/obmalloc.c b/Objects/obmalloc.c index bb154c76ab1814..2c00efc255dc3c 100644 --- a/Objects/obmalloc.c +++ b/Objects/obmalloc.c @@ -1215,7 +1215,7 @@ _Py_GetAllocatedBlocks(void) /* add up allocated blocks for used pools */ for (uint i = 0; i < maxarenas; ++i) { /* Skip arenas which are not allocated. */ - if (arenas[i].address == NULL) { + if (arenas[i].address == 0) { continue; }