[Numpy-discussion] Memory leak in array protocol numarray<--numpy

Travis Oliphant oliphant.travis at ieee.org
Fri Aug 11 17:11:03 CDT 2006

Todd Miller wrote:
> I looked at this a little with a debug python and figure it's a bug in 
> numpy.zeros():
Hmmm.  I thought of that, but could not get any memory leak by just 
creating zeros in a four loop.

In other words:

for i in xrange(10000000):
      numpy.zeros(dtype=numpy.float64, shape=3)

does not leak..

So, it's seems to be related to the array protocol.  I have not been 
able to spot what is going on though.  There does not seem to be any 
reference-counting problem that I can see.


More information about the Numpy-discussion mailing list