axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Senaka Fernando (JIRA)" <>
Subject [jira] Assigned: (AXIS2C-881) Function axis2_svc_client_remove_all_headers [Alastair FETTES]
Date Wed, 30 Jan 2008 11:43:35 GMT


Senaka Fernando reassigned AXIS2C-881:

    Assignee: Senaka Fernando

> Function axis2_svc_client_remove_all_headers [Alastair FETTES]
> --------------------------------------------------------------
>                 Key: AXIS2C-881
>                 URL:
>             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_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:
For additional commands, e-mail:

View raw message