axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adrian Dick (JIRA)" <axis-c-...@ws.apache.org>
Subject [jira] Created: (AXISCPP-691) Memory leak in generated stubs for non-nillable simple types
Date Tue, 14 Jun 2005 12:55:48 GMT
Memory leak in generated stubs for non-nillable simple types
------------------------------------------------------------

         Key: AXISCPP-691
         URL: http://issues.apache.org/jira/browse/AXISCPP-691
     Project: Axis-C++
        Type: Bug
  Components: WSDL processing - Doc  
    Versions: current (nightly)    
    Reporter: Adrian Dick
 Assigned to: Adrian Dick 


The generated stubs introduce a memory leak when handling non-nillable simple types.

The code currently produced is:
xsd__int * pReturn = m_pCall->getElementAsInt("addReturn", 0);
if(pReturn)
    Ret = *pReturn;

pReturn is never deleted.

The code should be:
xsd__int * pReturn = m_pCall->getElementAsInt("addReturn", 0);
if(pReturn)
{
    Ret = *pReturn;
    delete pReturn;
}

-- 
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


Mime
View raw message