summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2013-01-19 19:58:51 (GMT)
committerBenjamin Peterson <benjamin@python.org>2013-01-19 19:58:51 (GMT)
commitf0472f6995d71350834a097762ee2eba4b0b13f8 (patch)
tree7a5c4b0b651e77a2a12c186a1613c88d508cc1c0 /Python
parent7cc2964f1293ac498ab4e7ac11725f171e01202f (diff)
parentc71741f413923d4367e23c0fa98aae325427cb21 (diff)
downloadcpython-f0472f6995d71350834a097762ee2eba4b0b13f8.zip
cpython-f0472f6995d71350834a097762ee2eba4b0b13f8.tar.gz
cpython-f0472f6995d71350834a097762ee2eba4b0b13f8.tar.bz2
merge 3.3
Diffstat (limited to 'Python')
-rw-r--r--Python/pyarena.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/Python/pyarena.c b/Python/pyarena.c
index bb2fd1e..02a31d8 100644
--- a/Python/pyarena.c
+++ b/Python/pyarena.c
@@ -156,7 +156,6 @@ PyArena_New()
void
PyArena_Free(PyArena *arena)
{
- int r;
assert(arena);
#if defined(Py_DEBUG)
/*
@@ -173,12 +172,6 @@ PyArena_Free(PyArena *arena)
assert(arena->a_objects->ob_refcnt == 1);
*/
- /* Clear all the elements from the list. This is necessary
- to guarantee that they will be DECREFed. */
- r = PyList_SetSlice(arena->a_objects,
- 0, PyList_GET_SIZE(arena->a_objects), NULL);
- assert(r == 0);
- assert(PyList_GET_SIZE(arena->a_objects) == 0);
Py_DECREF(arena->a_objects);
free(arena);
}