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/03/20 06:45:03 UTC

svn commit: r387141 - in /webservices/axis2/trunk/c/modules: core/context/msg_ctx.c mod_addr/addr_out_handler.c

Author: sahan
Date: Sun Mar 19 21:45:01 2006
New Revision: 387141

URL: http://svn.apache.org/viewcvs?rev=387141&view=rev
Log:
More mem leak fixes

Modified:
    webservices/axis2/trunk/c/modules/core/context/msg_ctx.c
    webservices/axis2/trunk/c/modules/mod_addr/addr_out_handler.c

Modified: webservices/axis2/trunk/c/modules/core/context/msg_ctx.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/context/msg_ctx.c?rev=387141&r1=387140&r2=387141&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/context/msg_ctx.c (original)
+++ webservices/axis2/trunk/c/modules/core/context/msg_ctx.c Sun Mar 19 21:45:01 2006
@@ -1341,6 +1341,12 @@
     
     if (msg_info_headers)
     {
+        if(NULL !=  AXIS2_INTF_TO_IMPL(msg_ctx)->msg_info_headers)
+        {
+            AXIS2_MSG_INFO_HEADERS_FREE(
+                        AXIS2_INTF_TO_IMPL(msg_ctx)->msg_info_headers, env);
+            AXIS2_INTF_TO_IMPL(msg_ctx)->msg_info_headers = NULL;
+        }
         AXIS2_INTF_TO_IMPL(msg_ctx)->msg_info_headers = msg_info_headers;
     }
     

Modified: webservices/axis2/trunk/c/modules/mod_addr/addr_out_handler.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/mod_addr/addr_out_handler.c?rev=387141&r1=387140&r2=387141&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/mod_addr/addr_out_handler.c (original)
+++ webservices/axis2/trunk/c/modules/mod_addr/addr_out_handler.c Sun Mar 19 21:45:01 2006
@@ -332,6 +332,12 @@
                                                    AXIS2_WSA_REPLY_TO,
                                                    soap_header, addr_ns);
 
+        if(NULL != epr)
+        {
+            AXIS2_ENDPOINT_REF_FREE(epr, env);
+            epr = NULL;
+        }
+
         epr = AXIS2_MSG_INFO_HEADERS_GET_FROM (msg_info_headers, env);
 
         if (epr)
@@ -587,7 +593,7 @@
     }
 
     service_name = AXIS2_ENDPOINT_REF_GET_SVC_NAME (epr, env);
-    if (service_name)
+    /*if (service_name)
     {
         axis2_char_t *service_name_text = NULL;
 
@@ -639,7 +645,7 @@
 
         }
 
-    }
+    }*/
     return AXIS2_SUCCESS;
 }