[ http://issues.apache.org/jira/browse/AXISCPP-937?page=all ]
     
Adrian Dick closed AXISCPP-937:
-------------------------------

    Fix Version: current (nightly)
     Resolution: Fixed

I have resolved this by the following:

1)  Introducing an additional clone method on Axis_Array and generated derived 
array types.  This returns a new Axis_Array object, which is a complete (deep 
copy) clone of the current object.
2)  Modified serializer to exploit this method to clone the array, then working 
with the clone.
3)  Modified generated wrapper code to delete Axis_Array objects after passing 
to the serializer (which now takes a clone) and before returning control back 
to the axis engine.

> Server leaks memory for arrays
> ------------------------------
>
>          Key: AXISCPP-937
>          URL: http://issues.apache.org/jira/browse/AXISCPP-937
>      Project: Axis-C++
>         Type: Bug
>   Components: Server - Engine
>     Versions: current (nightly)
>     Reporter: Adrian Dick
>     Assignee: Adrian Dick
>      Fix For: current (nightly)

>
> When serializing and clearing up arrays within the server, the array content 
> is correctly deleted ( see AXISCPP-936 ). But the Axis_Array (or one of it's 
> derivatives) is not deleted.
> The serializer extracts the inner c-style array from the array object, which 
> it later correctly deletes but does not delete the Axis_Array object.
> However, it needs to be careful about when it deletes as this will carry out 
> a deep delete, resulting in the c-style array also being deleted.

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

Reply via email to