axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject svn commit: r478108 - in /webservices/axis2/trunk/c: modules/core/clientapi/svc_client.c samples/server/echo/echo.c
Date Wed, 22 Nov 2006 10:17:01 GMT
Author: samisa
Date: Wed Nov 22 02:17:00 2006
New Revision: 478108

URL: http://svn.apache.org/viewvc?view=rev&rev=478108
Log:
Fixed break due to memory corruption

Modified:
    webservices/axis2/trunk/c/modules/core/clientapi/svc_client.c
    webservices/axis2/trunk/c/samples/server/echo/echo.c

Modified: webservices/axis2/trunk/c/modules/core/clientapi/svc_client.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/clientapi/svc_client.c?view=diff&rev=478108&r1=478107&r2=478108
==============================================================================
--- webservices/axis2/trunk/c/modules/core/clientapi/svc_client.c (original)
+++ webservices/axis2/trunk/c/modules/core/clientapi/svc_client.c Wed Nov 22 02:17:00 2006
@@ -1356,12 +1356,7 @@
         svc_client_impl->options = NULL;
     }
 
-    if (svc_client_impl->conf_ctx)
-    {
-        AXIS2_CONF_CTX_FREE(svc_client_impl->conf_ctx, env);
-        svc_client_impl->conf_ctx = NULL;
-    }
-
+    
     if (svc_client_impl->listener_manager)
     {
         AXIS2_LISTNER_MANAGER_FREE(svc_client_impl->listener_manager, env);
@@ -1372,6 +1367,12 @@
     {
         AXIS2_OP_CLIENT_FREE(svc_client_impl->op_client, env);
         svc_client_impl->op_client = NULL;
+    }
+
+    if (svc_client_impl->conf_ctx)
+    {
+        AXIS2_CONF_CTX_FREE(svc_client_impl->conf_ctx, env);
+        svc_client_impl->conf_ctx = NULL;
     }
 
     if (svc_client_impl->svc_client.ops)

Modified: webservices/axis2/trunk/c/samples/server/echo/echo.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/server/echo/echo.c?view=diff&rev=478108&r1=478107&r2=478108
==============================================================================
--- webservices/axis2/trunk/c/samples/server/echo/echo.c (original)
+++ webservices/axis2/trunk/c/samples/server/echo/echo.c Wed Nov 22 02:17:00 2006
@@ -40,20 +40,6 @@
         printf("Echo client ERROR: input parameter NULL\n");
         return NULL;
     }
-    else
-    {
-        axiom_xml_writer_t *writer = NULL;
-        axiom_output_t *om_output = NULL;
-     /*   axis2_char_t *buffer = NULL;*/
-
-        writer = axiom_xml_writer_create_for_memory(env, NULL, AXIS2_TRUE, 0,
-                AXIS2_XML_PARSER_TYPE_BUFFER);
-        om_output = axiom_output_create(env, writer);
-
-        /*AXIOM_NODE_SERIALIZE (node, env, om_output);
-        buffer = AXIOM_XML_WRITER_GET_XML(writer, env);
-        printf("buffer = %s \n", buffer);*/
-    }
 
     text_parent_node = AXIOM_NODE_GET_FIRST_CHILD(node, env);
     if (!text_parent_node) /* 'text' node */



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


Mime
View raw message