You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Dushshantha Chandradasa (JIRA)" <ji...@apache.org> on 2008/01/09 12:33:37 UTC

[jira] Resolved: (AXIS2C-875) Function axiom_attribute_create[Alastair FETTES]

     [ https://issues.apache.org/jira/browse/AXIS2C-875?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dushshantha Chandradasa resolved AXIS2C-875.
--------------------------------------------

    Resolution: Fixed

> Function axiom_attribute_create[Alastair FETTES]
> ------------------------------------------------
>
>                 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)
>
>         Attachments: diff.txt
>
>
> <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