[lxml-dev] memory leak in el.get() ?

Stefan Behnel behnel_ml at gkec.informatik.tu-darmstadt.de
Sun Feb 5 11:27:02 CET 2006


Scott Haeger wrote:
> I am getting a memory leak using the get attribute method.  The
> following will illustrate the problem:
> 
> el = etree.Element("element")
> el.set('a', 'first')
> 
> while True:
>     x = el.get('a')
> 
> Memory usage as displayed in top continues will continue to grow.
> 
> I am using the following:
> lxml 0.8
> libxml2 2.6.23
> Fedora Core 3
> 
> Scott


Fixed. You can either use the current SVN version (trunk or scoder2 branch) or
apply the attached patch by hand.

Stefan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: leak.patch
Type: text/x-patch
Size: 1216 bytes
Desc: not available
Url : http://codespeak.net/pipermail/lxml-dev/attachments/20060205/af02557d/leak-0001.bin


More information about the lxml-dev mailing list