Memory leaks

Gordon McMillan gmcm at hypernet.com
Mon Jul 3 10:28:21 EDT 2000


Ingo Adler wrote:

[strange leaks in SWIG'd code]

>I have some simple Python-Code which generated memory leaks (ca. 4MB):
>(The real code is more complicated, but I could strip it down to this
>simple example = the smallest example with the memory leak.)
>//---------------------------
>x = X()
>
>for i in range(100000):
>    y = x.getY()
>    y.getNumber()
>//---------------------------

Doing things in the "obvious" way from your (snipped) incomplete code, I 
get no leak when using MSVC 5.

- Gordon



More information about the Python-list mailing list