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

Robert Lazarski resolved AXIS2C-1204.
-------------------------------------
    Fix Version/s: 2.0.0
                       (was: 1.7.0)
         Assignee: Robert Lazarski
       Resolution: Fixed

    Fix two memory leaks in 
axis2_raw_xml_in_out_msg_recv_invoke_business_logic_sync:
    
    1. res_name string leak: The dynamically allocated response name string
       from axutil_stracat() was not being freed. Now freed in both success
       and error paths of RPC response handling.
    
    2. default_envelope leak: When axiom_soap_header_create_with_parent,
       axiom_soap_body_create_with_parent, or axiom_soap_body_get_base_node
       failed, the function returned without freeing the already-created
       SOAP envelope. Added axiom_soap_envelope_free() calls in all three
       early return paths.


> memory leak for In-Only message with no parameter
> -------------------------------------------------
>
>                 Key: AXIS2C-1204
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1204
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: core/receivers
>    Affects Versions: 1.4.0
>         Environment: linux fc5
>            Reporter: Frederic Heem
>            Assignee: Robert Lazarski
>            Priority: Major
>             Fix For: 2.0.0
>
>
> Fro In-Only message with no parameter, memory is leaked for each invokation 
> of the service:
> ==24947== 819 (280 direct, 539 indirect) bytes in 7 blocks are definitely 
> lost in loss record 48 of 53
> ==24947==    at 0x4005858: malloc (vg_replace_malloc.c:207)
> ==24947==    by 0x402ABDD: axiom_node_create (om_node.c:75)
> ==24947==    by 0x402E8D7: axiom_element_create (om_element.c:78)
> ==24947==    by 0x4FA4874: ???
> ==24947==    by 0x409AC39: 
> axis2_raw_xml_in_out_msg_recv_invoke_business_logic_sync 
> (raw_xml_in_out_msg_recv.c:266)
> ==24947==    by 0x4099F33: axis2_msg_recv_invoke_business_logic 
> (msg_recv.c:392)
> ==24947==    by 0x409A563: axis2_msg_recv_receive_impl (msg_recv.c:319)
> ==24947==    by 0x4099FB3: axis2_msg_recv_receive (msg_recv.c:431)
> ==24947==    by 0x408F638: axis2_engine_receive (engine.c:315)
> ==24947==    by 0x401978D: 
> axis2_http_transport_utils_process_http_post_request 
> (http_transport_utils.c:595)
> ==24947==    by 0x4016883: axis2_http_worker_process_request 
> (http_worker.c:899)
> ==24947==    by 0x411DEE0: axis2_svr_thread_worker_func 
> (http_svr_thread.c:259)



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to