Kaydet (Commit) 841747cb authored tarafından Martin v. Löwis's avatar Martin v. Löwis

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.
üst c597d1b4
......@@ -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. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment