]> granicus.if.org Git - python/commitdiff
Remove an unneeded variable.
authorBrett Cannon <bcannon@gmail.com>
Wed, 5 May 2010 20:16:50 +0000 (20:16 +0000)
committerBrett Cannon <bcannon@gmail.com>
Wed, 5 May 2010 20:16:50 +0000 (20:16 +0000)
Found using Clang's static analyzer.

Objects/obmalloc.c

index fa985da9878abf4fcb9febe6093b5a65267d61f4..c8c36d51c14abf97a18a801904f5ee930506cec7 100644 (file)
@@ -1761,7 +1761,6 @@ _PyObject_DebugMallocStats(void)
         * will be living in full pools -- would be a shame to miss them.
         */
        for (i = 0; i < maxarenas; ++i) {
-               uint poolsinarena;
                uint j;
                uptr base = arenas[i].address;
 
@@ -1770,7 +1769,6 @@ _PyObject_DebugMallocStats(void)
                        continue;
                narenas += 1;
 
-               poolsinarena = arenas[i].ntotalpools;
                numfreepools += arenas[i].nfreepools;
 
                /* round up to pool alignment */