You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by sa...@apache.org on 2006/12/18 11:21:49 UTC
svn commit: r488199 - in /webservices/axis2/trunk/c/modules/core:
context/ctx.c deployment/dep_engine.c deployment/desc_builder.c
description/op.c engine/req_uri_disp.c
Author: samisa
Date: Mon Dec 18 02:21:48 2006
New Revision: 488199
URL: http://svn.apache.org/viewvc?view=rev&rev=488199
Log:
Fixed leaks
Modified:
webservices/axis2/trunk/c/modules/core/context/ctx.c
webservices/axis2/trunk/c/modules/core/deployment/dep_engine.c
webservices/axis2/trunk/c/modules/core/deployment/desc_builder.c
webservices/axis2/trunk/c/modules/core/description/op.c
webservices/axis2/trunk/c/modules/core/engine/req_uri_disp.c
Modified: webservices/axis2/trunk/c/modules/core/context/ctx.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/context/ctx.c?view=diff&rev=488199&r1=488198&r2=488199
==============================================================================
--- webservices/axis2/trunk/c/modules/core/context/ctx.c (original)
+++ webservices/axis2/trunk/c/modules/core/context/ctx.c Mon Dec 18 02:21:48 2006
@@ -175,7 +175,7 @@
void *value_value = AXIS2_PROPERTY_GET_VALUE (value, env);
if (temp_value_value != value_value)
{
- /*AXIS2_PROPERTY_FREE(temp_value, env);*/
+ AXIS2_PROPERTY_FREE(temp_value, env);
}
}
}
Modified: webservices/axis2/trunk/c/modules/core/deployment/dep_engine.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/deployment/dep_engine.c?view=diff&rev=488199&r1=488198&r2=488199
==============================================================================
--- webservices/axis2/trunk/c/modules/core/deployment/dep_engine.c (original)
+++ webservices/axis2/trunk/c/modules/core/deployment/dep_engine.c Mon Dec 18 02:21:48 2006
@@ -832,6 +832,7 @@
out_fault_phases = AXIS2_PHASES_INFO_GET_OP_OUT_FAULTPHASES(
dep_engine_impl->phases_info, env);
new_out_fault_phases = axis2_phases_info_copy_flow(env, out_fault_phases);
+ AXIS2_ARRAY_LIST_FREE(out_fault_phases, env);
AXIS2_CONF_SET_OUT_FAULT_PHASES(dep_engine_impl->conf, env, new_out_fault_phases);
if (AXIS2_SUCCESS != status)
{
Modified: webservices/axis2/trunk/c/modules/core/deployment/desc_builder.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/deployment/desc_builder.c?view=diff&rev=488199&r1=488198&r2=488199
==============================================================================
--- webservices/axis2/trunk/c/modules/core/deployment/desc_builder.c (original)
+++ webservices/axis2/trunk/c/modules/core/deployment/desc_builder.c Mon Dec 18 02:21:48 2006
@@ -753,8 +753,18 @@
if(op_element)
action_mappings = AXIOM_ELEMENT_GET_CHILDREN_WITH_QNAME(op_element, env,
qname,op_node);
+
+ AXIS2_QNAME_FREE(qname, env);
+ qname = NULL;
if(!action_mappings)
+ {
+ if (mapping_list)
+ {
+ AXIS2_ARRAY_LIST_FREE(mapping_list, env);
+ mapping_list = NULL;
+ }
return AXIS2_SUCCESS;
+ }
while (AXIOM_CHILDREN_QNAME_ITERATOR_HAS_NEXT(action_mappings, env))
{
axiom_element_t *mapping_element = NULL;
Modified: webservices/axis2/trunk/c/modules/core/description/op.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/description/op.c?view=diff&rev=488199&r1=488198&r2=488199
==============================================================================
--- webservices/axis2/trunk/c/modules/core/description/op.c (original)
+++ webservices/axis2/trunk/c/modules/core/description/op.c Mon Dec 18 02:21:48 2006
@@ -1985,6 +1985,11 @@
AXIS2_PARAM_CHECK(env->error, mapping_list, AXIS2_FAILURE);
op_impl = AXIS2_INTF_TO_IMPL(op);
+ if (op_impl->wsamapping_list)
+ {
+ AXIS2_ARRAY_LIST_FREE(op_impl->wsamapping_list, env);
+ op_impl->wsamapping_list = NULL;
+ }
op_impl->wsamapping_list = mapping_list;
return AXIS2_SUCCESS;
}
Modified: webservices/axis2/trunk/c/modules/core/engine/req_uri_disp.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/engine/req_uri_disp.c?view=diff&rev=488199&r1=488198&r2=488199
==============================================================================
--- webservices/axis2/trunk/c/modules/core/engine/req_uri_disp.c (original)
+++ webservices/axis2/trunk/c/modules/core/engine/req_uri_disp.c Mon Dec 18 02:21:48 2006
@@ -125,6 +125,7 @@
"Service found using target endpoint address");
}
}
+ AXIS2_FREE(env->allocator, url_tokens[0]);
}
AXIS2_FREE(env->allocator, url_tokens);
url_tokens = NULL;
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org