[Numpy-discussion] Interesting memory leak

Albert Strasheim fullung at gmail.com
Fri Aug 18 06:31:06 EDT 2006


Hello all

> <snip>
> I decided to upgrade to 1.0b2 just to see what I get and now I get 7kB of
> "possibly lost" memory, coming from PyObject_Malloc (in
> /usr/lib/libpython2.4.so.1.0). This is a constant 7kB, however, and it
> isn't getting any larger if I increase the loop iterations. Looks good
> then. I don't really know the meaning of this "possibly lost" memory.

http://projects.scipy.org/scipy/numpy/ticket/195

This leak is caused by add_docstring, but it's supposed to leak. I wonder if
there's a way to register some kind of on-exit handler in Python so that
this can also be cleaned up?

Cheers,

Albert





More information about the NumPy-Discussion mailing list