axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emanuel Norrbin (JIRA)" <>
Subject [jira] Created: (AXISCPP-923) Memory leak in HTTPChannel::ReportError
Date Thu, 26 Jan 2006 01:59:09 GMT
Memory leak in  HTTPChannel::ReportError

         Key: AXISCPP-923
     Project: Axis-C++
        Type: Bug
  Components: Transport (axis3)  
    Versions: current (nightly)    
 Environment: All platforms, issue found in drop 24-Jan-2006 21:23 
    Reporter: Emanuel Norrbin

File: transport\axis3\HTTPChannel\HTTPChannel.cpp
Method:  void HTTPChannel::ReportError( char * szText1, char * szText2)
Line: 750 - 755

void HTTPChannel::ReportError( char * szText1, char * szText2)
    long        dwMsg = GETLASTERROR
    string *    sMsg = PLATFORM_GET_ERROR_MESSAGE( dwMsg);
    char        szMsg[600];

    sprintf( szMsg, "%s %d %s: '%s'\n", szText1, (int) dwMsg, szText2, sMsg->c_str());

    m_LastError = szMsg;

In this method the string* sMsg is never deleted. I don't see why a string* is used
when a string would have worked just as well, but if a pointer is used it has to be deleted.


This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message