Author: damitha
Date: Thu Jan 24 06:42:52 2008
New Revision: 614886
URL: http://svn.apache.org/viewvc?rev=614886&view=rev
Log:
Fixing memory leaks
Modified:
webservices/sandesha/trunk/c/src/handlers/sandesha2_out_handler.c
webservices/sandesha/trunk/c/src/msgprocessors/app_msg_processor.c
webservices/sandesha/trunk/c/src/msgprocessors/close_seq_msg_processor.c
webservices/sandesha/trunk/c/src/msgprocessors/create_seq_res_msg_processor.c
webservices/sandesha/trunk/c/src/msgprocessors/terminate_seq_msg_processor.c
Modified: webservices/sandesha/trunk/c/src/handlers/sandesha2_out_handler.c
URL:
http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/src/handlers/sandesha2_out_handler.c?rev=614886&r1=614885&r2=614886&view=diff
==============================================================================
--- webservices/sandesha/trunk/c/src/handlers/sandesha2_out_handler.c (original)
+++ webservices/sandesha/trunk/c/src/handlers/sandesha2_out_handler.c Thu Jan
24 06:42:52 2008
@@ -230,8 +230,8 @@
SANDESHA2_APPLICATION_PROCESSING_DONE);
if(temp_prop)
axutil_property_set_value(temp_prop, env, AXIS2_VALUE_FALSE);
- /*if(rm_msg_ctx)
- sandesha2_msg_ctx_free(rm_msg_ctx, env);*/
+ if(rm_msg_ctx)
+ sandesha2_msg_ctx_free(rm_msg_ctx, env);
AXIS2_LOG_TRACE(env->log, AXIS2_LOG_SI,
"[sandesha2]Exit:sandesha2_out_handler_invoke");
return AXIS2_SUCCESS;
Modified: webservices/sandesha/trunk/c/src/msgprocessors/app_msg_processor.c
URL:
http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/src/msgprocessors/app_msg_processor.c?rev=614886&r1=614885&r2=614886&view=diff
==============================================================================
--- webservices/sandesha/trunk/c/src/msgprocessors/app_msg_processor.c
(original)
+++ webservices/sandesha/trunk/c/src/msgprocessors/app_msg_processor.c Thu Jan
24 06:42:52 2008
@@ -1540,6 +1540,8 @@
axis2_msg_ctx_set_transport_out_desc(create_seq_msg, env, trans_out);
engine = axis2_engine_create(env,
axis2_msg_ctx_get_conf_ctx(create_seq_msg,
env));
+ if(create_seq_rm_msg)
+ sandesha2_msg_ctx_free(create_seq_rm_msg, env);
if(!axis2_engine_resume_send(engine, env, create_seq_msg))
{
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
Modified:
webservices/sandesha/trunk/c/src/msgprocessors/close_seq_msg_processor.c
URL:
http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/src/msgprocessors/close_seq_msg_processor.c?rev=614886&r1=614885&r2=614886&view=diff
==============================================================================
--- webservices/sandesha/trunk/c/src/msgprocessors/close_seq_msg_processor.c
(original)
+++ webservices/sandesha/trunk/c/src/msgprocessors/close_seq_msg_processor.c
Thu Jan 24 06:42:52 2008
@@ -241,6 +241,8 @@
sandesha2_create_seq_mgr_free(create_seq_mgr, env);
if(next_msg_mgr)
sandesha2_next_msg_mgr_free(next_msg_mgr, env);
+ if(close_seq_res_rm_msg)
+ sandesha2_msg_ctx_free(close_seq_res_rm_msg, env);
return AXIS2_SUCCESS;
}
Modified:
webservices/sandesha/trunk/c/src/msgprocessors/create_seq_res_msg_processor.c
URL:
http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/src/msgprocessors/create_seq_res_msg_processor.c?rev=614886&r1=614885&r2=614886&view=diff
==============================================================================
---
webservices/sandesha/trunk/c/src/msgprocessors/create_seq_res_msg_processor.c
(original)
+++
webservices/sandesha/trunk/c/src/msgprocessors/create_seq_res_msg_processor.c
Thu Jan 24 06:42:52 2008
@@ -434,6 +434,8 @@
sandesha2_next_msg_mgr_free(next_msg_mgr, env);
if(storage_mgr)
sandesha2_storage_mgr_free(storage_mgr, env);
+ if(create_seq_rm_msg)
+ sandesha2_msg_ctx_free(create_seq_rm_msg, env);
return AXIS2_FAILURE;
}
axis2_msg_ctx_set_to(create_seq_msg, env, to);
@@ -441,6 +443,8 @@
new_msg_store_key = axutil_uuid_gen(env);
sandesha2_storage_mgr_store_msg_ctx(storage_mgr, env,
new_msg_store_key,
create_seq_msg);
+ if(create_seq_rm_msg)
+ sandesha2_msg_ctx_free(create_seq_rm_msg, env);
}
sandesha2_next_msg_bean_set_ref_msg_key(next_bean, env,
new_msg_store_key);
Modified:
webservices/sandesha/trunk/c/src/msgprocessors/terminate_seq_msg_processor.c
URL:
http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/src/msgprocessors/terminate_seq_msg_processor.c?rev=614886&r1=614885&r2=614886&view=diff
==============================================================================
---
webservices/sandesha/trunk/c/src/msgprocessors/terminate_seq_msg_processor.c
(original)
+++
webservices/sandesha/trunk/c/src/msgprocessors/terminate_seq_msg_processor.c
Thu Jan 24 06:42:52 2008
@@ -511,6 +511,8 @@
}
if(engine)
axis2_engine_free(engine, env);
+ if(out_rm_msg)
+ sandesha2_msg_ctx_free(out_rm_msg, env);
AXIS2_LOG_TRACE(env->log, AXIS2_LOG_SI, "[sandesha2]Exit:sandesha2_"\
"terminate_seq_msg_processor_add_terminate_seq_res");
return AXIS2_SUCCESS;
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]