]> granicus.if.org Git - python/commitdiff
Fix sys.getobjects(0): we get a reference to the
authorMartin v. Löwis <martin@v.loewis.de>
Sat, 15 Apr 2006 12:46:09 +0000 (12:46 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Sat, 15 Apr 2006 12:46:09 +0000 (12:46 +0000)
arena's "private" list of objects, so there might
be two references to that list.

Python/pyarena.c

index 24a73743009099c9482d16b05340cc92f61d1940..f11a90546b67491206e1b4b223e89391d583c3fd 100644 (file)
@@ -171,7 +171,10 @@ PyArena_Free(PyArena *arena)
         */
 #endif
        block_free(arena->a_head);
+       /* This property normally holds, except when the code being compiled
+          is sys.getobjects(0), in which case there will be two references.
         assert(arena->a_objects->ob_refcnt == 1);
+       */
 
         /* Clear all the elements from the list.  This is necessary
            to guarantee that they will be DECREFed. */