[
https://issues.apache.org/jira/browse/AXIS2C-875?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Lahiru Gunathilake updated AXIS2C-875:
--------------------------------------
Attachment: diff.txt
This resolves the issue.
> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]