Author: Armin Rigo <[email protected]>
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):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to