Memory leak in c code generation when adding the operations
-----------------------------------------------------------

                 Key: AXIS2C-1314
                 URL: https://issues.apache.org/jira/browse/AXIS2C-1314
             Project: Axis2-C
          Issue Type: Bug
          Components: code generation
         Environment: Win32/64
            Reporter: Patrick van Beem
             Fix For: Current (Nightly)
         Attachments: creating_the_operations_memleak.diff

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 */


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to