axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adrian Dick (JIRA)" <>
Subject [jira] Closed: (AXISCPP-937) Server leaks memory for arrays
Date Thu, 23 Feb 2006 15:12:40 GMT
     [ ]
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
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:
>      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:
For more information on JIRA, see:

View raw message