Author: damitha
Date: Tue Aug  5 18:37:41 2008
New Revision: 683078

URL: http://svn.apache.org/viewvc?rev=683078&view=rev
Log:
Fixing memory leaks. Now all leaks in Sandesha2/C is fixed.

Modified:
    
webservices/sandesha/tags/sandesha2/c/worker_thread_removed-23may2008/src/msgprocessors/app_msg_processor.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=683078&r1=683077&r2=683078&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
 Tue Aug  5 18:37:41 2008
@@ -1908,8 +1908,16 @@
         {
             axis2_engine_free(engine, env);
         }
+
         /* Reset the message context to avoid double freeing of transport out 
stream */
-        axis2_core_utils_reset_out_msg_ctx(env, ack_msg_ctx);
+        if(ack_msg_ctx)
+        {
+            axis2_endpoint_ref_t *temp_epr = NULL;
+
+            temp_epr = axis2_msg_ctx_get_to(ack_msg_ctx, env);
+            axis2_endpoint_ref_free(temp_epr, env);
+            axis2_core_utils_reset_out_msg_ctx(env, ack_msg_ctx);
+        }
     }
 
     if(ack_rm_msg_ctx)



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

Reply via email to