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

Memory leak in c code generation when adding the operations

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.6.0
    • code generation
    • None
    • Win32/64

    Description

      The function axis2_op_create_with_qname() clones the name argument, so the ownership of the original argument remains with the caller. So we should free the allocated name:

      op_qname = axutil_qname_create(env,
      "div" ,
      "http://localhost/axis/Calculator",
      NULL);
      op = axis2_op_create_with_qname(env, op_qname);
      axutil_qname_free(op_qname,env); /* line added */

      Attachments

        1. creating_the_operations_memleak.diff
          1 kB
          Patrick van Beem

        Activity

          People

            shankar Selvaratnam Uthaiyashankar
            pvbeem Patrick van Beem
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified