[XML-SIG] xml.dom.ext.reader.HtmlLib memory leak?
xmlsig at codeweld.com
xmlsig at codeweld.com
Thu Jul 29 12:07:59 CEST 2004
I've python 2.3.4 on windows xp with PyXML-0.8.3.win32-py2.3
This code leaks substancialy
from xml.dom.ext.reader.HtmlLib import FromHtml
import urllib
from xml.dom import ext
s = urllib.urlopen( 'http://www.google.com' ).read()
while True:
root = FromHtml( s )
ext.ReleaseNode( root )
However, this does not ( or only very minor )
from xml.dom.ext.reader.Sax2 import Reader
import urllib
from xml.dom import ext
s = urllib.urlopen( 'http://www.infoworld.com/rss/reviews.xml' ).read()
while True:
reader = Reader()
root = reader.fromString( s )
ext.ReleaseNode( root )
Any suggestions?
More information about the XML-SIG
mailing list