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 "Milinda Lakmal Pathirage (JIRA)" <ji...@apache.org> on 2008/06/27 08:29:44 UTC

[jira] Resolved: (AXIS2C-1151) memory leak in code generated by WSDL2C, soap_act not freed

     [ https://issues.apache.org/jira/browse/AXIS2C-1151?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Milinda Lakmal Pathirage resolved AXIS2C-1151.
----------------------------------------------

       Resolution: Fixed
    Fix Version/s: Current (Nightly)

Fix apply to current SVN Head.

> memory leak in code generated by WSDL2C, soap_act  not freed
> ------------------------------------------------------------
>
>                 Key: AXIS2C-1151
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1151
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: code generation
>    Affects Versions: 1.4.0
>         Environment: linuc fc5
>            Reporter: Frederic Heem
>            Assignee: Milinda Lakmal Pathirage
>             Fix For: Current (Nightly)
>
>
> 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

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