diff options
author | shankar | 2010-04-05 05:59:47 +0000 |
---|---|---|
committer | shankar | 2010-04-05 05:59:47 +0000 |
commit | 6a4307a3703b0a19abe728266deea5381145dadb (patch) | |
tree | 75b7e9cee6ec090bf111eea892b1cab77d0fa92a /src/modules/mod_addr | |
parent | afe578cd8894b9a6cd6c6b65e552448536f02dce (diff) | |
download | axis2c-6a4307a3703b0a19abe728266deea5381145dadb.tar.gz axis2c-6a4307a3703b0a19abe728266deea5381145dadb.tar.bz2 |
Fixing memory leaks
git-svn-id: http://svn.apache.org/repos/asf/axis/axis2/c/core/trunk@930802 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/modules/mod_addr')
-rw-r--r-- | src/modules/mod_addr/addr_out_handler.c | 5 |
1 files changed, 5 insertions, 0 deletions
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);
|