You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Patrick van Beem (JIRA)" <ji...@apache.org> on 2008/12/09 13:30:45 UTC

[jira] Created: (AXIS2C-1314) Memory leak in c code generation when adding the operations

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: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


[jira] Resolved: (AXIS2C-1314) Memory leak in c code generation when adding the operations

Posted by "Dimuthu Gamage (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2C-1314?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dimuthu Gamage resolved AXIS2C-1314.
------------------------------------

    Resolution: Fixed

Fixed it in the svn. Thanks Patrick van Beem for the patch

> 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
>            Assignee: S.Uthaiyashankar
>             Fix For: 1.6.0
>
>         Attachments: creating_the_operations_memleak.diff
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> 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.


[jira] Assigned: (AXIS2C-1314) Memory leak in c code generation when adding the operations

Posted by "S.Uthaiyashankar (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2C-1314?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

S.Uthaiyashankar reassigned AXIS2C-1314:
----------------------------------------

    Assignee: S.Uthaiyashankar

> 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
>            Assignee: S.Uthaiyashankar
>             Fix For: 1.6.0
>
>         Attachments: creating_the_operations_memleak.diff
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> 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.


[jira] Updated: (AXIS2C-1314) Memory leak in c code generation when adding the operations

Posted by "Manjula Peiris (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2C-1314?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Manjula Peiris updated AXIS2C-1314:
-----------------------------------

    Fix Version/s:     (was: Current (Nightly))
                   1.6.0

> 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: 1.6.0
>
>         Attachments: creating_the_operations_memleak.diff
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> 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.


[jira] Updated: (AXIS2C-1314) Memory leak in c code generation when adding the operations

Posted by "Patrick van Beem (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2C-1314?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Patrick van Beem updated AXIS2C-1314:
-------------------------------------

    Attachment: creating_the_operations_memleak.diff

> 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
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> 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: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org