A copy of complex types not taken for input parameters, but are deleted when
engine cleaned up
----------------------------------------------------------------------------------------------
Key: AXISCPP-886
URL: http://issues.apache.org/jira/browse/AXISCPP-886
Project: Axis-C++
Type: Bug
Components: Client - Engine
Versions: current (nightly)
Reporter: Adrian Dick
I am in the process of trying some memory fixes for xsd__base64Binary and
xsd__hexBinary, and am encountering problems when re-using an complex type
input (deleting the web services stub in-between).
I believe the problem is caused by the engine/generated stubs not taking deep
copies of input parameters, yet the internal engine object Param deletes them
when the engine is cleaned up.
As a simple fix, this could probably be resolved by modifying Param.cpp line 54
from:
delete m_Value.pCplxObj;
to:
m_Value.pCplxObj = NULL;
It would probably be a better fix to implement deep copying of input complex
types.
--
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