On 9 Apr 2010, at 22:07, Barry Scott wrote:

I have reproduced the mem leak on the mac and fedora.

I'm looking into the problem.

Barry

This was hard to debug using any build of python with
its own memory allocator enabled. This prevents malloc
debug tools from finding the  real location of the leak.

I build python with --without-pymalloc which tells python
to use malloc and free.

valgrind then found the memory leak and a coding error.

This is fixed in r232. Please test in your setup and confirm
the memory leak is fixed.

Barry