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

memory leak in code generated by WSDL2C, soap_act not freed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.0
    • None
    • code generation
    • None
    • linuc fc5

    Description

      In the client code generated, here is a piece of code which allocates a string but doesn't free it:
      if (NULL == soap_action)

      { is_soap_act_set = AXIS2_FALSE; soap_action = "GetDeviceList"; soap_act = axutil_string_create(env, "GetDeviceList"); <<<<<<<<HERE axis2_options_set_soap_action(options, env, soap_act); axis2_options_set_action( options, env, soap_action ); }

      The string soap_act is not freed, thus resulting in a memory leak each time the the client code invokes the operation

      Attachments

        Activity

          People

            milinda Milinda Pathirage
            fredericheem Frederic Heem
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: