Small but significant memory leak in Pyana XSLT processor

Brian Quinlan brian at sweetapp.com
Wed Mar 9 06:53:20 EST 2005


Ola Natvig wrote:
> I've isolated the problem a bit more. The script will not leak if line 25:
> transformer.transform2String(transformer.parseSource(xml), xslt)
> 
> is changed to:
> transformer.transform2String(xml, xslt)
> 
> Looks like the DOM tree or at least parts of it are not freed. But there are
> no need to call parseSource when the XML is different for each iteration,
> that solves my problem, but the parseSoruce function should free all memory
> anyways.

Yes it should. It's not obvious to me why it doesn't. I'll investage it 
in detail a bit later.

Cheers,
Brian



More information about the Python-list mailing list