You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ka...@apache.org on 2006/09/06 13:07:40 UTC

svn commit: r440686 - in /webservices/axis2/trunk/c: modules/core/addr/msg_info_headers.c modules/core/clientapi/options.c samples/client/echo/echo.c samples/user_guide/clients/echo_blocking_addr.c samples/user_guide/clients/echo_rest.c

Author: kaushalye
Date: Wed Sep  6 04:07:39 2006
New Revision: 440686

URL: http://svn.apache.org/viewvc?view=rev&rev=440686
Log:
Applying patch for meory leaks fixed - JIRA AXIS2C-253

Modified:
    webservices/axis2/trunk/c/modules/core/addr/msg_info_headers.c
    webservices/axis2/trunk/c/modules/core/clientapi/options.c
    webservices/axis2/trunk/c/samples/client/echo/echo.c
    webservices/axis2/trunk/c/samples/user_guide/clients/echo_blocking_addr.c
    webservices/axis2/trunk/c/samples/user_guide/clients/echo_rest.c

Modified: webservices/axis2/trunk/c/modules/core/addr/msg_info_headers.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/addr/msg_info_headers.c?view=diff&rev=440686&r1=440685&r2=440686
==============================================================================
--- webservices/axis2/trunk/c/modules/core/addr/msg_info_headers.c (original)
+++ webservices/axis2/trunk/c/modules/core/addr/msg_info_headers.c Wed Sep  6 04:07:39 2006
@@ -579,6 +579,14 @@
         AXIS2_ENDPOINT_REF_FREE(msg_info_headers_impl->relates_to, env);
         msg_info_headers_impl->relates_to = NULL;
     }
+
+    if (msg_info_headers_impl->fault_to)
+    {
+        AXIS2_ENDPOINT_REF_FREE(msg_info_headers_impl->fault_to, env);
+        msg_info_headers_impl->fault_to= NULL;
+    }
+
+
     if (msg_info_headers_impl->msg_info_headers.ops)
     {
         AXIS2_FREE(env->allocator, msg_info_headers_impl->msg_info_headers.ops);

Modified: webservices/axis2/trunk/c/modules/core/clientapi/options.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/clientapi/options.c?view=diff&rev=440686&r1=440685&r2=440686
==============================================================================
--- webservices/axis2/trunk/c/modules/core/clientapi/options.c (original)
+++ webservices/axis2/trunk/c/modules/core/clientapi/options.c Wed Sep  6 04:07:39 2006
@@ -1167,6 +1167,12 @@
         options_impl->sender_transport_protocol = NULL;
     }
 
+    if (options_impl->msg_info_headers)
+    {
+    	AXIS2_MSG_INFO_HEADERS_FREE(options_impl->msg_info_headers, env);
+	options_impl->msg_info_headers = NULL;
+    }
+
     AXIS2_FREE(env->allocator, options_impl);
     options_impl = NULL;
 

Modified: webservices/axis2/trunk/c/samples/client/echo/echo.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/client/echo/echo.c?view=diff&rev=440686&r1=440685&r2=440686
==============================================================================
--- webservices/axis2/trunk/c/samples/client/echo/echo.c (original)
+++ webservices/axis2/trunk/c/samples/client/echo/echo.c Wed Sep  6 04:07:39 2006
@@ -113,11 +113,7 @@
         AXIS2_SVC_CLIENT_FREE(svc_client, env);
         svc_client = NULL;
     }
-    if (endpoint_ref)
-    {
-        AXIS2_ENDPOINT_REF_FREE(endpoint_ref, env);
-        endpoint_ref = NULL;
-    }
+
     return 0;
 }
 

Modified: webservices/axis2/trunk/c/samples/user_guide/clients/echo_blocking_addr.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/user_guide/clients/echo_blocking_addr.c?view=diff&rev=440686&r1=440685&r2=440686
==============================================================================
--- webservices/axis2/trunk/c/samples/user_guide/clients/echo_blocking_addr.c (original)
+++ webservices/axis2/trunk/c/samples/user_guide/clients/echo_blocking_addr.c Wed Sep  6 04:07:39 2006
@@ -108,10 +108,5 @@
         AXIS2_SVC_CLIENT_FREE(svc_client, env);
         svc_client = NULL;
     }
-    if (endpoint_ref)
-    {
-        AXIS2_ENDPOINT_REF_FREE(endpoint_ref, env);
-        endpoint_ref = NULL;
-    }
     return 0;
 }

Modified: webservices/axis2/trunk/c/samples/user_guide/clients/echo_rest.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/user_guide/clients/echo_rest.c?view=diff&rev=440686&r1=440685&r2=440686
==============================================================================
--- webservices/axis2/trunk/c/samples/user_guide/clients/echo_rest.c (original)
+++ webservices/axis2/trunk/c/samples/user_guide/clients/echo_rest.c Wed Sep  6 04:07:39 2006
@@ -118,10 +118,5 @@
         AXIS2_SVC_CLIENT_FREE(svc_client, env);
         svc_client = NULL;
     }
-    if (endpoint_ref)
-    {
-        AXIS2_ENDPOINT_REF_FREE(endpoint_ref, env);
-        endpoint_ref = NULL;
-    }
     return 0;
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org