Author: damitha
Date: Wed Jun 18 00:54:19 2008
New Revision: 669104

URL: http://svn.apache.org/viewvc?rev=669104&view=rev
Log:
Fixing memory leaks

Modified:
    
webservices/sandesha/tags/sandesha2/c/worker_thread_removed-23may2008/src/msgprocessors/app_msg_processor.c
    
webservices/sandesha/tags/sandesha2/c/worker_thread_removed-23may2008/src/util/terminate_mgr.c

Modified: 
webservices/sandesha/tags/sandesha2/c/worker_thread_removed-23may2008/src/msgprocessors/app_msg_processor.c
URL: 
http://svn.apache.org/viewvc/webservices/sandesha/tags/sandesha2/c/worker_thread_removed-23may2008/src/msgprocessors/app_msg_processor.c?rev=669104&r1=669103&r2=669104&view=diff
==============================================================================
--- 
webservices/sandesha/tags/sandesha2/c/worker_thread_removed-23may2008/src/msgprocessors/app_msg_processor.c
 (original)
+++ 
webservices/sandesha/tags/sandesha2/c/worker_thread_removed-23may2008/src/msgprocessors/app_msg_processor.c
 Wed Jun 18 00:54:19 2008
@@ -2030,7 +2030,6 @@
     axis2_msg_ctx_t *response_msg_ctx = NULL;
     axiom_soap_envelope_t *response_envelope = NULL;
     axis2_char_t *soap_ns_uri = NULL;
-    axis2_op_t *op = NULL;
     axis2_conf_ctx_t *conf_ctx = NULL;
     axis2_engine_t *engine = NULL;
     axis2_status_t status = AXIS2_FAILURE;
@@ -2069,14 +2068,9 @@
 
     axis2_msg_ctx_set_status_code (response_msg_ctx, env, 
axis2_msg_ctx_get_status_code (create_seq_msg_ctx, env));
 
-    op = axis2_msg_ctx_get_op(create_seq_msg_ctx, env);
-    if (op)
-    {
-        axis2_op_register_op_ctx(op, env, response_msg_ctx, 
axis2_msg_ctx_get_op_ctx(create_seq_msg_ctx, env));
-    }
-
     axis2_msg_ctx_set_server_side(response_msg_ctx, env, AXIS2_TRUE);
 
+    axis2_msg_ctx_set_op_ctx(response_msg_ctx, env, 
axis2_msg_ctx_get_op_ctx(create_seq_msg_ctx, env));
     axis2_msg_ctx_set_conf_ctx(response_msg_ctx, env, conf_ctx);
     axis2_msg_ctx_set_svc_ctx(response_msg_ctx, env, 
axis2_msg_ctx_get_svc_ctx(create_seq_msg_ctx, env));
     axis2_msg_ctx_set_svc_grp_ctx(response_msg_ctx, env, 
axis2_msg_ctx_get_svc_grp_ctx(create_seq_msg_ctx, 
@@ -2861,7 +2855,6 @@
 {
     axis2_msg_ctx_t *response_msg_ctx = NULL;
     axiom_soap_envelope_t *response_envelope = NULL;
-    axis2_op_t *op = NULL;
     axis2_conf_ctx_t *conf_ctx = NULL;
     axis2_engine_t *engine = NULL;
     axis2_status_t status = AXIS2_FAILURE;
@@ -2883,17 +2876,12 @@
     }
 
     axis2_msg_ctx_set_server_side(response_msg_ctx, env, AXIS2_FALSE);
+    axis2_msg_ctx_set_op_ctx(response_msg_ctx, env, 
axis2_msg_ctx_get_op_ctx(msg_ctx, env));
     axis2_msg_ctx_set_conf_ctx(response_msg_ctx, env, conf_ctx);
     axis2_msg_ctx_set_svc_grp_ctx(response_msg_ctx, env, 
axis2_msg_ctx_get_svc_grp_ctx(msg_ctx, env));
 
     axis2_msg_ctx_set_status_code (response_msg_ctx, env, 
axis2_msg_ctx_get_status_code (msg_ctx, env));
 
-    op = axis2_msg_ctx_get_op(msg_ctx, env);
-    if (op)
-    {
-        axis2_op_register_op_ctx(op, env, response_msg_ctx, 
axis2_msg_ctx_get_op_ctx(msg_ctx, env));
-    }
-
     response_envelope = axis2_msg_ctx_get_response_soap_envelope(msg_ctx, env);
     if(!response_envelope)
     {

Modified: 
webservices/sandesha/tags/sandesha2/c/worker_thread_removed-23may2008/src/util/terminate_mgr.c
URL: 
http://svn.apache.org/viewvc/webservices/sandesha/tags/sandesha2/c/worker_thread_removed-23may2008/src/util/terminate_mgr.c?rev=669104&r1=669103&r2=669104&view=diff
==============================================================================
--- 
webservices/sandesha/tags/sandesha2/c/worker_thread_removed-23may2008/src/util/terminate_mgr.c
 (original)
+++ 
webservices/sandesha/tags/sandesha2/c/worker_thread_removed-23may2008/src/util/terminate_mgr.c
 Wed Jun 18 00:54:19 2008
@@ -1107,7 +1107,6 @@
     axis2_char_t *soap_ns_uri = NULL;
     axis2_msg_ctx_t *response_msg_ctx = NULL;
     axiom_soap_envelope_t *response_envelope = NULL;
-    axis2_op_t *op = NULL;
     axis2_conf_ctx_t *conf_ctx = NULL;
     axis2_engine_t *engine = NULL;
     axis2_status_t status = AXIS2_FAILURE;
@@ -1141,20 +1140,14 @@
     AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI, 
         "[sandesha2] Response envelope for CreateSequenceResponse message 
found");
 
-    op = axis2_msg_ctx_get_op(msg_ctx, env);
-    
     response_msg_ctx = axis2_msg_ctx_create(env, conf_ctx, 
axis2_msg_ctx_get_transport_in_desc(msg_ctx, 
                 env), axis2_msg_ctx_get_transport_out_desc(msg_ctx, env));
     
     axis2_msg_ctx_set_soap_envelope(response_msg_ctx, env, response_envelope);
 
-    if(op)
-    {
-        axis2_op_register_op_ctx(op, env, response_msg_ctx, 
axis2_msg_ctx_get_op_ctx(msg_ctx, env));
-    }
-    
     axis2_msg_ctx_set_server_side(response_msg_ctx, env, AXIS2_TRUE);
 
+    axis2_msg_ctx_set_op_ctx(response_msg_ctx, env, 
axis2_msg_ctx_get_op_ctx(msg_ctx, env));
     axis2_msg_ctx_set_svc_ctx(response_msg_ctx, env, 
axis2_msg_ctx_get_svc_ctx(msg_ctx, env));
     axis2_msg_ctx_set_svc_grp_ctx(response_msg_ctx, env, 
axis2_msg_ctx_get_svc_grp_ctx(msg_ctx, env));
     axis2_msg_ctx_set_conf_ctx(response_msg_ctx, env, conf_ctx);



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to