axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Damitha Kumarage (JIRA)" <j...@apache.org>
Subject [jira] Created: (AXIS2C-422) axis2_property_set_value does not free the existing value
Date Wed, 22 Nov 2006 09:28:01 GMT
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
             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


Mime
View raw message