diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-10-27 16:30:46 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-27 16:30:46 (GMT) |
commit | cfbc01fe48517c4cc15e4ad6f8cf08d273307ca9 (patch) | |
tree | 5ea53f205f0bb87fa79c582a5942d73efb039845 | |
parent | 8e475adf3052796b3fb644a6373b682b482bb13e (diff) | |
download | cpython-cfbc01fe48517c4cc15e4ad6f8cf08d273307ca9.zip cpython-cfbc01fe48517c4cc15e4ad6f8cf08d273307ca9.tar.gz cpython-cfbc01fe48517c4cc15e4ad6f8cf08d273307ca9.tar.bz2 |
obmalloc: Remove unused variable. (GH-98770)
(cherry picked from commit bded5edd9abf7ae6b2874916d70ec29ad209217c)
Co-authored-by: Benjamin Peterson <benjamin@python.org>
-rw-r--r-- | Objects/obmalloc.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Objects/obmalloc.c b/Objects/obmalloc.c index ce5da5f..fae9c81 100644 --- a/Objects/obmalloc.c +++ b/Objects/obmalloc.c @@ -2999,7 +2999,6 @@ _PyObject_DebugMallocStats(FILE *out) * will be living in full pools -- would be a shame to miss them. */ for (i = 0; i < maxarenas; ++i) { - uint j; uintptr_t base = arenas[i].address; /* Skip arenas which are not allocated. */ @@ -3018,8 +3017,7 @@ _PyObject_DebugMallocStats(FILE *out) /* visit every pool in the arena */ assert(base <= (uintptr_t) arenas[i].pool_address); - for (j = 0; base < (uintptr_t) arenas[i].pool_address; - ++j, base += POOL_SIZE) { + for (; base < (uintptr_t) arenas[i].pool_address; base += POOL_SIZE) { poolp p = (poolp)base; const uint sz = p->szidx; uint freeblocks; |