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-875) Function axiom_attribute_create
Date Fri, 04 Jan 2008 04:13:35 GMT
Function axiom_attribute_create
-------------------------------

                 Key: AXIS2C-875
                 URL: https://issues.apache.org/jira/browse/AXIS2C-875
             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
axiom_attribute_t* axiom_attribute_create(
     const axutil_env_t*     env,
     const axis2_char_t*     localname,
     const axis2_char_t*     value,
     axiom_namespace_t*      ns)
</snippet>

Problem: This return value of type axiom_attribute_t* does not take responsibility for the
memory allocated for localname, value, ns, and env. Although, if the return value is added
to an axiom_node_t using axiom_element_add_attribute, the responsibility of the namespace
of the attribute is given to the axiom_node_t. 

Solution: Document memory ownership for parameters and return value.  Investigate the ownership
of the namespace parameter.

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