From 6a4307a3703b0a19abe728266deea5381145dadb Mon Sep 17 00:00:00 2001 From: shankar Date: Mon, 5 Apr 2010 05:59:47 +0000 Subject: Fixing memory leaks git-svn-id: http://svn.apache.org/repos/asf/axis/axis2/c/core/trunk@930802 13f79535-47bb-0310-9956-ffa450edef68 --- src/modules/mod_addr/addr_out_handler.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/modules/mod_addr') diff --git a/src/modules/mod_addr/addr_out_handler.c b/src/modules/mod_addr/addr_out_handler.c index dbf47a4..6b70580 100644 --- a/src/modules/mod_addr/addr_out_handler.c +++ b/src/modules/mod_addr/addr_out_handler.c @@ -325,6 +325,8 @@ axis2_addr_out_handler_invoke( } }/* if(epr_to) */ + axiom_namespace_free(addressing_namespace, env); + action = axis2_msg_info_headers_get_action(msg_info_headers, env); if(action && *action) { @@ -599,6 +601,7 @@ axis2_addr_out_handler_add_to_soap_header( addr_ns_obj = axiom_namespace_create(env, addr_ns, AXIS2_WSA_DEFAULT_PREFIX); address_ele = axiom_element_create(env, hb_node, EPR_ADDRESS, addr_ns_obj, &address_node); + axiom_namespace_free(addr_ns_obj, env); if(address_ele) { axiom_namespace_t *dec_ns = NULL; @@ -623,6 +626,7 @@ axis2_addr_out_handler_add_to_soap_header( reference_ele = axiom_element_create(env, header_block_node, EPR_REFERENCE_PARAMETERS, addr_ns_obj, &reference_node); + axiom_namespace_free(addr_ns_obj, env); ref_attribute_list = axis2_endpoint_ref_get_ref_attribute_list(endpoint_ref, env); if(ref_attribute_list) @@ -667,6 +671,7 @@ axis2_addr_out_handler_add_to_soap_header( reference_ele = axiom_element_create(env, header_block_node, AXIS2_WSA_METADATA, addr_ns_obj, &reference_node); + axiom_namespace_free(addr_ns_obj, env); } meta_attribute_list = axis2_endpoint_ref_get_metadata_attribute_list(endpoint_ref, env); -- cgit v1.1-32-gdbae