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 xe...@xml.apache.org on 2004/10/19 19:54:51 UTC
[jira] Closed: (XERCESC-239) Memory Leaks in the basic parser operation
Message:
The following issue has been closed.
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/XERCESC-239
Here is an overview of the issue:
---------------------------------------------------------------------
Key: XERCESC-239
Summary: Memory Leaks in the basic parser operation
Type: Bug
Status: Closed
Resolution: WON'T FIX
Project: Xerces-C++
Components:
SAX/SAX2
Versions:
1.5.1
Assignee:
Reporter: BugZilla Maintainer Account
Created: Mon, 22 Oct 2001 3:13 AM
Updated: Tue, 19 Oct 2004 10:52 AM
Environment: Operating System: Linux
Platform: PC
Description:
Dear all:
I've got a server-like application (which is supposed to be running forever) and
within this application I wish to utilise the SAXparser. It turned out that the
parser has memory leaks. It reserves several hundreds of bytes on each
parse-operation.
I've got linux 2.4.9, gcc 2.96.
I'm using the library 'libxerces-c1_5_1.so' that comes with the tar.
I've also learned that one can call XMLPlatformUtilities::Initialize() only once
within the same process.
The application code snippet below:
XxxxReturn_t XxxxXMLParser_c::Parse( const char *bufferi)
{
try
{
MemBufInputSource* memBufIS = new MemBufInputSource ( (const XMLByte*)bufferi,
strlen(bufferi),
"mBufId",
false );
parser = new SAXParser();
parser->parse( *memBufIS );
delete memBufIS;
delete parser;
}
catch (const XMLException& toCatch)
{
return XXXX_RETURN_ERROR;
}
return XXXX_RETURN_OK;
}
---------------------------------------------------------------------
JIRA INFORMATION:
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
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org