Skip to content

Commit bded5ed

Browse files
authored
obmalloc: Remove unused variable. (GH-98770)
1 parent 723ebe7 commit bded5ed

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Objects/obmalloc.c

+1-3
Original file line numberDiff line numberDiff line change
@@ -3000,7 +3000,6 @@ _PyObject_DebugMallocStats(FILE *out)
30003000
* will be living in full pools -- would be a shame to miss them.
30013001
*/
30023002
for (i = 0; i < maxarenas; ++i) {
3003-
uint j;
30043003
uintptr_t base = arenas[i].address;
30053004

30063005
/* Skip arenas which are not allocated. */
@@ -3019,8 +3018,7 @@ _PyObject_DebugMallocStats(FILE *out)
30193018

30203019
/* visit every pool in the arena */
30213020
assert(base <= (uintptr_t) arenas[i].pool_address);
3022-
for (j = 0; base < (uintptr_t) arenas[i].pool_address;
3023-
++j, base += POOL_SIZE) {
3021+
for (; base < (uintptr_t) arenas[i].pool_address; base += POOL_SIZE) {
30243022
poolp p = (poolp)base;
30253023
const uint sz = p->szidx;
30263024
uint freeblocks;

0 commit comments

Comments
 (0)