[ 
https://issues.apache.org/jira/browse/XERCESC-239?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12995635#comment-12995635
 ] 

Michael Glavassevich commented on XERCESC-239:
----------------------------------------------

Huh? :-)

I didn't report this. Guess the infra folks had an issue with "BugZilla 
Maintainer Account [ [email protected] ]" being listed as the reporter.

> Memory Leaks in the basic parser operation
> ------------------------------------------
>
>                 Key: XERCESC-239
>                 URL: https://issues.apache.org/jira/browse/XERCESC-239
>             Project: Xerces-C++
>          Issue Type: Bug
>          Components: SAX/SAX2
>    Affects Versions: 1.5.1
>         Environment: Operating System: Linux
> Platform: PC
>            Reporter: Michael Glavassevich
>            Priority: Blocker
>
> 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;
> }

-- 
This message is automatically generated by JIRA.
-
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