axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lahiru Gunathilake (JIRA)" <j...@apache.org>
Subject [jira] Created: (AXIS2C-876) Function axiom_element_add_attribute
Date Fri, 04 Jan 2008 04:13:35 GMT
Function axiom_element_add_attribute
------------------------------------

                 Key: AXIS2C-876
                 URL: https://issues.apache.org/jira/browse/AXIS2C-876
             Project: Axis2-C
          Issue Type: Bug
          Components: xml/om
    Affects Versions: Current (Nightly)
         Environment: Ubuntu 7.04
            Reporter: Lahiru Gunathilake
             Fix For: Current (Nightly)


<snippet>
AXIS2_EXTERN
axis2_status_t axiom_element_add_attribute(
     axiom_element_t*       om_element,
     const axutil_env_t*    env,
     axiom_attribute_t*     attribute,
     axiom_node_t*          element_node)
</snippet>

Problem: The parameter om_element takes responsibility for the memory allocated for the parameter
attribute, thus a call to axiom_element_free will de-allocated the data for attribute. The
parameter om_element also takes responsibility for the namespace associated with attribute.

Solution: Document memory ownership for parameters and return value. 

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


Mime
View raw message