5 Feb
2006
5 Feb
'06
5:27 a.m.
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