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