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/22 12:21:13 UTC

svn commit: r448887 - in /webservices/axis2/trunk/c: modules/core/clientapi/op_client.c samples/client/echo/echo.c

Author: kaushalye
Date: Fri Sep 22 03:21:08 2006
New Revision: 448887

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


Modified:
    webservices/axis2/trunk/c/modules/core/clientapi/op_client.c
    webservices/axis2/trunk/c/samples/client/echo/echo.c

Modified: webservices/axis2/trunk/c/modules/core/clientapi/op_client.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/clientapi/op_client.c?view=diff&rev=448887&r1=448886&r2=448887
==============================================================================
--- webservices/axis2/trunk/c/modules/core/clientapi/op_client.c (original)
+++ webservices/axis2/trunk/c/modules/core/clientapi/op_client.c Fri Sep 22 03:21:08 2006
@@ -649,6 +649,12 @@
         op_client_impl->op_client.ops = NULL;
     }
 
+    if (op_client_impl->op_ctx)
+    {
+        AXIS2_OP_CTX_FREE(op_client_impl->op_ctx, env);
+        op_client_impl->op_ctx = NULL;
+    }
+
     AXIS2_FREE(env->allocator, op_client_impl);
     op_client_impl = NULL;
     axiom_xml_reader_cleanup();

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=448887&r1=448886&r2=448887
==============================================================================
--- webservices/axis2/trunk/c/samples/client/echo/echo.c (original)
+++ webservices/axis2/trunk/c/samples/client/echo/echo.c Fri Sep 22 03:21:08 2006
@@ -114,6 +114,12 @@
         svc_client = NULL;
     }
 
+    if (env)
+    {
+        axis2_env_free(env);
+        env = NULL;
+    }
+
     return 0;
 }
 



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