[ 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to