memory leak in mtom
-------------------
Key: AXIS2C-1149
URL: https://issues.apache.org/jira/browse/AXIS2C-1149
Project: Axis2-C
Issue Type: Bug
Affects Versions: 1.4.0
Environment: linux fc5
Reporter: Frederic Heem
Priority: Minor
[EMAIL PROTECTED] mtom]$ valgrind --leak-check=full ./mtom
==14639== Memcheck, a memory error detector.
==14639== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
==14639== Using LibVEX rev 1804, a library for dynamic binary translation.
==14639== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
==14639== Using valgrind-3.3.0, a dynamic binary instrumentation framework.
==14639== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.
==14639== For more details, rerun with: -v
==14639==
Using endpoint : http://localhost:9090/axis2/services/mtom
<ns1:mtomSample
xmlns:ns1="http://ws.apache.org/axis2/c/samples/mtom"><ns1:fileName>test.jpg</ns1:fileName><ns1:image><xop:Include
xmlns:xop="http://www.w3.org/2004/08/xop/include"
href="cid:[email protected]"></xop:Include></ns1:image></ns1:mtomSample>
Received OM : <ns1:response
xmlns:ns1="http://ws.apache.org/axis2/c/samples"><xop:Include
xmlns:xop="http://www.w3.org/2004/08/xop/include"
href="cid:[email protected]"></xop:Include></ns1:response>
mtom client invoke SUCCESSFUL!
==14639==
==14639== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 49 from 1)
==14639== malloc/free: in use at exit: 3,285 bytes in 12 blocks.
==14639== malloc/free: 19,598 allocs, 19,586 frees, 1,052,487 bytes allocated.
==14639== For counts of detected errors, rerun with: -v
==14639== searching for pointers to 12 not-freed blocks.
==14639== checked 286,248 bytes.
==14639==
==14639== 90 (16 direct, 74 indirect) bytes in 1 blocks are definitely lost in
loss record 2 of 9
==14639== at 0x4005828: malloc (vg_replace_malloc.c:207)
==14639== by 0x40E264C: axiom_namespace_create (om_namespace.c:51)
==14639== by 0x40DD867: axiom_text_serialize (om_text.c:399)
==14639== by 0x40DC500: axiom_node_serialize (om_node.c:480)
==14639== by 0x40DC841: axiom_node_to_string (om_node.c:1196)
==14639== by 0x8049024: build_om_programatically (mtom_client.c:211)
==14639== by 0x80491CC: main (mtom_client.c:122)
==14639==
==14639==
==14639== 49 bytes in 1 blocks are definitely lost in loss record 5 of 9
==14639== at 0x4005828: malloc (vg_replace_malloc.c:207)
==14639== by 0x4116118: axutil_strdup (string.c:282)
==14639== by 0x405C7D6:
axis2_http_transport_utils_get_value_from_content_type
(http_transport_utils.c:2113)
==14639== by 0x405F30F: axis2_http_transport_utils_create_soap_msg
(http_transport_utils.c:1903)
==14639== by 0x408D846: axis2_http_transport_sender_write_message
(http_transport_sender.c:800)
==14639== by 0x408E10D: axis2_http_transport_sender_invoke
(http_transport_sender.c:309)
==14639== by 0x402B876: axis2_engine_send (engine.c:176)
==14639== by 0x4052787: axis2_op_client_two_way_send (op_client.c:1140)
==14639== by 0x4053F8C: axis2_op_client_execute (op_client.c:500)
==14639== by 0x40563F8: axis2_svc_client_send_receive_with_op_qname
(svc_client.c:851)
==14639== by 0x40566B2: axis2_svc_client_send_receive (svc_client.c:949)
==14639== by 0x80491DF: main (mtom_client.c:126)
==14639==
==14639==
==14639== 786 bytes in 1 blocks are definitely lost in loss record 7 of 9
==14639== at 0x4005828: malloc (vg_replace_malloc.c:207)
==14639== by 0x40F0B13: axiom_mime_parser_parse (mime_parser.c:265)
==14639== by 0x405F675: axis2_http_transport_utils_create_soap_msg
(http_transport_utils.c:1956)
==14639== by 0x408D846: axis2_http_transport_sender_write_message
(http_transport_sender.c:800)
==14639== by 0x408E10D: axis2_http_transport_sender_invoke
(http_transport_sender.c:309)
==14639== by 0x402B876: axis2_engine_send (engine.c:176)
==14639== by 0x4052787: axis2_op_client_two_way_send (op_client.c:1140)
==14639== by 0x4053F8C: axis2_op_client_execute (op_client.c:500)
==14639== by 0x40563F8: axis2_svc_client_send_receive_with_op_qname
(svc_client.c:851)
==14639== by 0x40566B2: axis2_svc_client_send_receive (svc_client.c:949)
==14639== by 0x80491DF: main (mtom_client.c:126)
==14639==
==14639==
==14639== 2,092 (44 direct, 2,048 indirect) bytes in 1 blocks are definitely
lost in loss record 8 of 9
==14639== at 0x4005828: malloc (vg_replace_malloc.c:207)
==14639== by 0x4114095: axutil_stream_create_internal (stream.c:84)
==14639== by 0x41144E4: axutil_stream_create_basic (stream.c:234)
==14639== by 0x405F424: axis2_http_transport_utils_create_soap_msg
(http_transport_utils.c:1972)
==14639== by 0x408D846: axis2_http_transport_sender_write_message
(http_transport_sender.c:800)
==14639== by 0x408E10D: axis2_http_transport_sender_invoke
(http_transport_sender.c:309)
==14639== by 0x402B876: axis2_engine_send (engine.c:176)
==14639== by 0x4052787: axis2_op_client_two_way_send (op_client.c:1140)
==14639== by 0x4053F8C: axis2_op_client_execute (op_client.c:500)
==14639== by 0x40563F8: axis2_svc_client_send_receive_with_op_qname
(svc_client.c:851)
==14639== by 0x40566B2: axis2_svc_client_send_receive (svc_client.c:949)
==14639== by 0x80491DF: main (mtom_client.c:126)
==14639==
==14639== LEAK SUMMARY:
==14639== definitely lost: 895 bytes in 4 blocks.
==14639== indirectly lost: 2,122 bytes in 5 blocks.
==14639== possibly lost: 0 bytes in 0 blocks.
==14639== still reachable: 268 bytes in 3 blocks.
==14639== suppressed: 0 bytes in 0 blocks.
==14639== Reachable blocks (those to which a pointer was found) are not shown.
==14639== To see them, rerun with: --leak-check=full --show-reachable=yes
--
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]