[ 
http://issues.apache.org/jira/browse/XALANC-589?page=comments#action_12361666 ] 

David Bertoni commented on XALANC-589:
--------------------------------------

I should have been more explicit.  We only patch the latest version of the 
code, so this patch was built on the trunk of the Subversion repository.  It is 
unlikely you can apply it directly to either 1.3 or 1.8, although you can 
probably adapt it for use with those versions.

> 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
>     Assignee: David Bertoni
>  Attachments: patch.txt
>
> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to