Uploaded image for project: 'Axis2-C'
  1. Axis2-C
  2. AXIS2C-748

Memory leak in dep_engine.c

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.2.0
    • core/deployment
    • None
    • Ubuntu 7.04 (Feisty Fawn)

    Description

      When we load the dep_engine, we fetch the out-fault phases and assign them to the configuration. During the fetching process a new array list is created. This contains the phases. However, before assigning it, we have duplicated the array list and assigned the duplicate. And, during the process we have not freed the initial (fetched) array list.

      While going through the code, I understood that a duplicate is not necessary as the fetching process already creates a duplicate. Thus, I have removed the duplicate (new_out_fault_phases) and assigned the array list that was fetched (out_fault_phases), to the configuration.

      This resolves the memory leak. (refer diff.txt)

      Attachments

        1. diff.txt
          1 kB
          Senaka Fernando

        Activity

          People

            damitha Damitha N.M. Kumarage
            senakafdo Senaka Fernando
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: