[ http://issues.apache.org/jira/browse/XALANC-589?page=all ]
David Bertoni reassigned XALANC-589:
------------------------------------
Assign To: David Bertoni
> 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
>
> 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]