[XML-SIG] sax parser leaks memory?
Lars Marius Garshol
larsga@garshol.priv.no
05 Dec 2000 12:44:29 +0100
* Fredrik Lundh
|
| on my windows box, this little script runs out of memory
| within 30 seconds or so...
There is nothing wrong with the script, so there must be a memory leak
somewhere. I did a similar test where I used pyexpat directly:
import pyexpat
while 1:
p = pyexpat.ParserCreate()
p.Parse("<doc>This is a little document</doc>", 1)
del p
and that also leaked memory. (Incidentally, it crashed my Win98 box so
hard I had to physically turn it off and back on again.) So apparently
the leak is in pyexpat somewhere.
I tried running Plumbo on your application, but it couldn't find any
cycles.
--Lars M.