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

Memory leaks in deserialize methods of XSD classes (in src/soap/xsd)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • current (nightly)
    • 1.5 Final
    • SOAP
    • None

    Description

      Deserialize method returns a pointer that is never deleted. The generated code, dereferances the pointer and returns values to the Stub.

      Hence, the generated code should take care of the clearance of memeory.

      I tried to release this memeory in the destructor of the XSD class, but then by the time the generated code tries to access the value, the pointer is no more. This leaves the only option of deleting the memory returned in the generated code where it invokes the respective method.
      Alternatively, we can make the XSD class manage its own memory and let the code accessing the memory make a deep copy of the returned pointer (that is generated code)

      Whateve the fix would be, it needs changes to code generator.

      Attachments

        1. RPC style.txt
          2 kB
          Chinthana Dinapala
        2. Document style.txt
          2 kB
          Chinthana Dinapala

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: