ws-axis-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r388096 - /webservices/axis2/trunk/c/samples/client/echo/echo_client.c
Date Thu, 23 Mar 2006 08:12:09 GMT
Author: sahan
Date: Thu Mar 23 00:12:07 2006
New Revision: 388096

URL: http://svn.apache.org/viewcvs?rev=388096&view=rev
Log:
Memory leak fixes

Modified:
    webservices/axis2/trunk/c/samples/client/echo/echo_client.c

Modified: webservices/axis2/trunk/c/samples/client/echo/echo_client.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/samples/client/echo/echo_client.c?rev=388096&r1=388095&r2=388096&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/client/echo/echo_client.c (original)
+++ webservices/axis2/trunk/c/samples/client/echo/echo_client.c Thu Mar 23 00:12:07 2006
@@ -99,6 +99,10 @@
         AXIS2_OM_NODE_SERIALIZE (ret_node, &env, om_output);
         buffer = AXIS2_XML_WRITER_GET_XML(writer, &env);
         printf ("\nReceived OM node in XML : %s\n", buffer);
+        AXIS2_FREE(env->allocator, buffer);
+        buffer = NULL;
+        AXIS2_OM_OUTPUT_FREE(om_output, &env);
+        om_output = NULL;
     }
     else
     {



Mime
View raw message