diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2006-04-15 12:46:09 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2006-04-15 12:46:09 (GMT) |
commit | 841747cb56c6eeee9d89e6003a355b3d6c4c7cc1 (patch) | |
tree | 16da83d5bf2facbb742bf88c4c6524a2041971df /Python | |
parent | c597d1b4468e98f9f1f3fe22ab97012e4be918dc (diff) | |
download | cpython-841747cb56c6eeee9d89e6003a355b3d6c4c7cc1.zip cpython-841747cb56c6eeee9d89e6003a355b3d6c4c7cc1.tar.gz cpython-841747cb56c6eeee9d89e6003a355b3d6c4c7cc1.tar.bz2 |
Fix sys.getobjects(0): we get a reference to the
arena's "private" list of objects, so there might
be two references to that list.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/pyarena.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Python/pyarena.c b/Python/pyarena.c index 24a7374..f11a905 100644 --- a/Python/pyarena.c +++ b/Python/pyarena.c @@ -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. */ |