[4suite] Re: Memory Leak in amara.parse() or
amara.binderytools.bind_string()
Uche Ogbuji
uche at ogbuji.net
Tue Aug 8 17:21:51 MDT 2006
Alexis Marrero wrote:
> All,
>
> If you run the following script and top the process you will see the
> memory growing without bound.
>
> import amara
> for n in xrange(100000):
> xmlDocument = amara.parse(u'<spam/>')
Oh yeah, I also fixed this to
xmlDocument = amara.parse('<spam/>')
IOW pass in text, not Unicode to parse().
--
Uche Ogbuji Fourthought, Inc.
http://uche.ogbuji.net http://fourthought.com
http://copia.ogbuji.net http://4Suite.org
Articles: http://uche.ogbuji.net/tech/publications/
More information about the 4suite
mailing list