Uploaded image for project: 'Axis-C++'
  1. Axis-C++
  2. AXISCPP-342

There are too many leaks and possibilities for leaks in Param class and ParamValue class

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.4 Final
    • 1.6 Alpha
    • Serialization
    • None
    • All platforms

    Description

      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.

      Attachments

        1. Param.DIFF
          4 kB
          Marcus Dushshantha Chandradasa
        2. ParamCppDiff
          6 kB
          Chinthana Dinapala

        Issue Links

          Activity

            People

              cdinapala Chinthana Dinapala
              samisa Don Samisa Abeysinghe
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: