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

Reply via email to