[
https://issues.apache.org/jira/browse/AXIS2C-881?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Senaka Fernando reassigned AXIS2C-881:
--------------------------------------
Assignee: Senaka Fernando
> Function axis2_svc_client_remove_all_headers [Alastair FETTES]
> --------------------------------------------------------------
>
> Key: AXIS2C-881
> URL: https://issues.apache.org/jira/browse/AXIS2C-881
> Project: Axis2-C
> Issue Type: Bug
> Components: core/clientapi
> Affects Versions: Current (Nightly)
> Environment: Ubuntu
> Reporter: Lahiru Gunathilake
> Assignee: Senaka Fernando
> Fix For: Current (Nightly)
>
>
> <snippet>
> AXIS2_EXTERN
> axis2_status_t axis2_svc_client_remove_all_headers(
> axis2_svc_client_t* svc_client,
> const axutil_env_t* env)
> </snippet>
> This function does not take responsibility for the memory allocated to the
> pointers passed to it. In addition, the memory passed to the function
> axis2_svc_client_add_header through the parameter header is not de-allocated
> by this function (axis2_svc_client_remove_all_headers). This can create a
> possible memory leak. When in used in conjunction with a call to
> axis2_svc_client_send_receive_non_blocking, this is not a problem as this
> function will clean up the headers itself (this is assumed, since when you
> free the header nodes, an access violations occur when the SOAP message is
> sent and the calling function tries to free the SOAP message data, i.e. the
> header nodes).
> Solution: Document memory ownership for parameters and return value.
> Investigate potential memory leak.
--
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]