projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
18a1393
)
remove unnecessary clearing of list
author
Benjamin Peterson
<benjamin@python.org>
Sat, 19 Jan 2013 19:58:38 +0000
(14:58 -0500)
committer
Benjamin Peterson
<benjamin@python.org>
Sat, 19 Jan 2013 19:58:38 +0000
(14:58 -0500)
Python/pyarena.c
patch
|
blob
|
history
diff --git
a/Python/pyarena.c
b/Python/pyarena.c
index 2d63638856c488955cbfc1ab7e9ff05eab07fa81..513b3791d588f4bef2b815fce36dc65c6f0f5f40 100644
(file)
--- a/
Python/pyarena.c
+++ b/
Python/pyarena.c
@@
-159,7
+159,6
@@
PyArena_New()
void
PyArena_Free(PyArena *arena)
{
- int r;
assert(arena);
#if defined(Py_DEBUG)
/*
@@
-176,12
+175,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);
}