You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Adrian Dick (JIRA)" <ax...@ws.apache.org> on 2005/06/14 15:06:50 UTC
[jira] Closed: (AXISCPP-691) Memory leak in generated stubs for non-nillable simple types
[ 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