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] Closed: (AXISCPP-691) Memory leak in generated stubs for non-nillable simple types
Date Tue, 14 Jun 2005 13:06:50 GMT
     [ http://issues.apache.org/jira/browse/AXISCPP-691?page=all ]
     
Adrian Dick closed AXISCPP-691:
-------------------------------

    Fix Version: current (nightly)
     Resolution: Fixed

> 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
>     Assignee: Adrian Dick
>      Fix For: current (nightly)

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