Skip to content

Commit 6a1d165

Browse files
obmalloc: Remove unused variable. (GH-98770)
(cherry picked from commit bded5ed) Co-authored-by: Benjamin Peterson <[email protected]>
1 parent 9338e9a commit 6a1d165

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
@@ -2962,7 +2962,6 @@ _PyObject_DebugMallocStats(FILE *out)
29622962
* will be living in full pools -- would be a shame to miss them.
29632963
*/
29642964
for (i = 0; i < maxarenas; ++i) {
2965-
uint j;
29662965
uintptr_t base = arenas[i].address;
29672966

29682967
/* Skip arenas which are not allocated. */
@@ -2981,8 +2980,7 @@ _PyObject_DebugMallocStats(FILE *out)
29812980

29822981
/* visit every pool in the arena */
29832982
assert(base <= (uintptr_t) arenas[i].pool_address);
2984-
for (j = 0; base < (uintptr_t) arenas[i].pool_address;
2985-
++j, base += POOL_SIZE) {
2983+
for (; base < (uintptr_t) arenas[i].pool_address; base += POOL_SIZE) {
29862984
poolp p = (poolp)base;
29872985
const uint sz = p->szidx;
29882986
uint freeblocks;

0 commit comments

Comments
 (0)