You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Dmitry Hayes (JIRA)" <xa...@xml.apache.org> on 2006/04/06 18:32:28 UTC
[jira] Commented: (XALANC-589) Memory leaks when exception occurs
during parsing XML doc
[ http://issues.apache.org/jira/browse/XALANC-589?page=comments#action_12373507 ]
Dmitry Hayes commented on XALANC-589:
-------------------------------------
The patch looks ok . Thanks!
> 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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org