axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "nadir amra (JIRA)" <axis-c-...@ws.apache.org>
Subject [jira] Closed: (AXISCPP-923) Memory leak in HTTPChannel::ReportError
Date Tue, 28 Nov 2006 05:43:22 GMT
     [ http://issues.apache.org/jira/browse/AXISCPP-923?page=all ]

nadir amra closed AXISCPP-923.
------------------------------

    Fix Version/s:  1.6 Beta
       Resolution: Fixed

> Memory leak in  HTTPChannel::ReportError
> ----------------------------------------
>
>                 Key: AXISCPP-923
>                 URL: http://issues.apache.org/jira/browse/AXISCPP-923
>             Project: Axis-C++
>          Issue Type: Bug
>          Components: Transport (axis3)
>    Affects Versions: current (nightly)
>         Environment: All platforms, issue found in drop 24-Jan-2006 21:23 
>            Reporter: Emanuel Norrbin
>         Assigned To: nadir amra
>             Fix For:  1.6 Beta
>
>         Attachments: AXISCPP-923.patch
>
>
> 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.
> /Emanuel

-- 
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: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


Mime
View raw message