You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by bu...@apache.org on 2002/03/18 16:56:01 UTC

DO NOT REPLY [Bug 7164] - DOMParser with a DTD leak!

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7164>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7164

DOMParser with a DTD leak!





------- Additional Comments From jean-francois.farley@ixiasoft.com  2002-03-18 15:56 -------
Ok, i've taken some time to check it out and found out that it seems that the 
bug 812 wasn't properly corrected...

look for line 1080 in DOMParser.cpp...

it should be

EntityImpl *previousElem = (EntityImpl *)
	fDocumentType->entities->setNamedItem( elem ); 

instead of		

ElementImpl *previousElem = (ElementImpl *)
        fDocumentType->getElements()->setNamedItem( elem );

I'have changed it and it seems it has corrected the leak. maybe you should 
arrange that for the next release.

Note: I think there's still a very small leak.

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org