axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From din...@apache.org
Subject svn commit: r501316 - /webservices/axis2/trunk/c/axiom/test/om/test_om.c
Date Tue, 30 Jan 2007 05:58:39 GMT
Author: dinesh
Date: Mon Jan 29 21:58:35 2007
New Revision: 501316

URL: http://svn.apache.org/viewvc?view=rev&rev=501316
Log:
invalid frees fixed

Modified:
    webservices/axis2/trunk/c/axiom/test/om/test_om.c

Modified: webservices/axis2/trunk/c/axiom/test/om/test_om.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/axiom/test/om/test_om.c?view=diff&rev=501316&r1=501315&r2=501316
==============================================================================
--- webservices/axis2/trunk/c/axiom/test/om/test_om.c (original)
+++ webservices/axis2/trunk/c/axiom/test/om/test_om.c Mon Jan 29 21:58:35 2007
@@ -178,13 +178,14 @@
 
     buffer = (axis2_char_t*)AXIOM_XML_WRITER_GET_XML(writer, environment);
 
-    AXIOM_OUTPUT_FREE(om_output, environment);
     if (buffer)
         printf("%s", buffer);
 
+    AXIOM_OUTPUT_FREE(om_output, environment);
+
     AXIOM_STAX_BUILDER_FREE(builder, environment);
-    if (buffer)
-        AXIS2_FREE(environment->allocator, buffer);
+/*     if (buffer) */
+/*         AXIS2_FREE(environment->allocator, buffer); */
     printf("\nend test_om_build\n");
     fclose(f);
     return 0;
@@ -283,11 +284,11 @@
     output_buffer = (axis2_char_t*)AXIOM_XML_WRITER_GET_XML(writer, environment);
 
     AXIOM_OUTPUT_FREE(om_output, environment);
-    if (output_buffer)
-    {
-        printf("%s", output_buffer);
-        AXIS2_FREE(environment->allocator, output_buffer);
-    }
+	/*    if (output_buffer) */
+	/*     { */
+	/*         printf("%s", output_buffer); */
+	/*         AXIS2_FREE(environment->allocator, output_buffer); */
+	/*     } */
 
     printf("\nend test_om_serialize\n");
 



---------------------------------------------------------------------
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