axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Susantha Kumara <susan...@opensource.lk>
Subject Re: [jira] Created: (AXISCPP-342) There are too many leaks and possibilities for leaks in Param class and ParamValue class
Date Tue, 04 Jan 2005 10:23:40 GMT
Samisa Abeysinghe (JIRA) wrote:

>There are too many leaks and possibilities for leaks in Param class and ParamValue class
>----------------------------------------------------------------------------------------
>
>         Key: AXISCPP-342
>         URL: http://nagoya.apache.org/jira/browse/AXISCPP-342
>     Project: Axis-C++
>        Type: Bug
>  Components: Serialization/Deserialization  
>    Versions: 1.4 Final    
> Environment: All platforms
>    Reporter: Samisa Abeysinghe
>     Fix For: 1.5 Alpha
>
>
>There are too many leaks in the class Param and the associated class ParamValue.
>As these are not documented (specially the couplings/dependancies) it is time consuming
to fix them.
>Cleaning up members of ParamValue class is done by Param class - this is *VERY* bad -
as it is difficult to track what has been release and what not.
>
>As a solution, need to make the class ParamValue a class of its own with destructor, constructor,
copy constructor and assignment operator.
>
>Param class should need only worry about its own members.
>
>These leaks become apparent when there are exceptions with complex detail objects - I
used tests/client/fault_mapping to track those.
>
>  
>
this paramValue was a union earlier. That is why the Param class handles 
the memory of paramValue's members. I prefer having the union as it was. 
But now it has been made to be a class (by migration to complete C++ 
approach ;) ). Anyway if it is a class it needs its own routines to 
manage memory and other things.

Susantha.

Mime
View raw message