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 "Samisa Abeysinghe (JIRA)" <ji...@apache.org> on 2006/11/29 15:00:21 UTC

[jira] Resolved: (AXIS2C-422) axis2_property_set_value does not free the existing value

     [ http://issues.apache.org/jira/browse/AXIS2C-422?page=all ]

Samisa Abeysinghe resolved AXIS2C-422.
--------------------------------------

    Resolution: Fixed

Added logic to free when adding a new value

> axis2_property_set_value does not free the existing value
> ---------------------------------------------------------
>
>                 Key: AXIS2C-422
>                 URL: http://issues.apache.org/jira/browse/AXIS2C-422
>             Project: Axis2-C
>          Issue Type: Bug
>    Affects Versions: 0.95
>            Reporter: Damitha Kumarage
>         Assigned To: Samisa Abeysinghe
>             Fix For: 0.96
>
>
> axis2_property_set_value does not free the exisiting value. I fixed this as follows
> previosly
> property_impl->value = value;
> now
>     if(property_impl->value)
>     {
>         if(property_impl->free_func)
>            property_impl->free_func(property_impl->value, env);
>         else
>            AXIS2_FREE(env->allocator, property_impl->value);
>     }
>     property_impl->value = value;

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org