[pypy-commit] pypy gc-del: Document a possible memory leak.
arigo
noreply at buildbot.pypy.org
Fri Mar 1 15:05:05 CET 2013
Author: Armin Rigo <arigo at tunes.org>
Branch: gc-del
Changeset: r61889:103e6ebbc9c2
Date: 2013-03-01 15:04 +0100
http://bitbucket.org/pypy/pypy/changeset/103e6ebbc9c2/
Log: Document a possible memory leak.
diff --git a/pypy/module/array/interp_array.py b/pypy/module/array/interp_array.py
--- a/pypy/module/array/interp_array.py
+++ b/pypy/module/array/interp_array.py
@@ -226,6 +226,8 @@
# note that we don't call clear_all_weakrefs here because
# an array with freed buffer is ok to see - it's just empty with 0
# length
+ # XXX wrong, because we can then increase its length again,
+ # XXX which creates a memory leak
self.setlen(0)
def setlen(self, size, zero=False, overallocate=True):
More information about the pypy-commit
mailing list