xml-xalan-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ying-Yi Huang (JIRA)" <xalan-...@xml.apache.org>
Subject [jira] Created: (XALANC-589) Memory leaks when exception occurs during parsing XML doc
Date Wed, 14 Dec 2005 01:44:45 GMT
Memory leaks when exception occurs during parsing XML doc
---------------------------------------------------------

         Key: XALANC-589
         URL: http://issues.apache.org/jira/browse/XALANC-589
     Project: XalanC
        Type: Bug
  Components: XalanC  
    Versions: 1.3.x    
    Reporter: Ying-Yi Huang


When  an illegal XML document in a memory buffer is passed to   XalanSourceTreeParserLiaison.parseXMLStream(MemBufInputSource),
it  causes exception.  But the default exception doesn't free some allocated memory.  

This happens to Xalan 1.3 on RH7.2 and 1.8 on AS3.4. This is a segment of my code:

try {

const MemBufInputSource      memBuf((const XMLByte*)request,
                                            strlen(request),
                                            MemBufId,
                                            false);


        // Parse the document...

        XalanDocument* const   inputDoc =
          theLiaisonPtr->parseXMLStream(memBuf);
}
catch (...)
{
   return -1;
}



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


Mime
View raw message