Hi,<br><br>I am currently investigating what seems to be a memory leak
in python. (version 2.5.1). I have made python work with a custom
memory sub-allocator (pool). The idea is to  preallocate a pool of
memory during initialization of my application and ensure that Python
doesn't make any system mallocs (similar to max heap setting in java
VM). With this arrangement, python seems to run out of preallocated
memory after few iterations of the following code:
<br><br>int main(int argc, char *argv[]){<br>       int i;<br>       mem_init(3000000);//Initialize the memory pool with 3M<br>       for (i=0;i<2000,i++){<br>              Py_Initialize();<br>              Sleep(1000);
<br>              Py_Finalize();<br>       }<br>}<br clear="all"><br><br>The
above code runs out of memory after 1000 + iterations. To me this looks
like a memory leak, Does anyone out there have any idea whats happening
here?
<br><br>Regards,<br>Suresh<br clear="all"><br>-- <br>"Everything of value that people get from religion can be had more honestly, without presuming anything on insufficient evidence. The rest is self-deception, set to music."