axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject svn commit: r354047 - /webservices/axis2/trunk/c/test/xml/om/test_om.c
Date Mon, 05 Dec 2005 11:04:59 GMT
Author: samisa
Date: Mon Dec  5 03:04:53 2005
New Revision: 354047

URL: http://svn.apache.org/viewcvs?rev=354047&view=rev
Log:
Fixed memory leak in the tests

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

Modified: webservices/axis2/trunk/c/test/xml/om/test_om.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/xml/om/test_om.c?rev=354047&r1=354046&r2=354047&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/xml/om/test_om.c (original)
+++ webservices/axis2/trunk/c/test/xml/om/test_om.c Mon Dec  5 03:04:53 2005
@@ -160,7 +160,7 @@
   
     AXIS2_OM_STAX_BUILDER_FREE(builder, &environment);
   
-  
+    AXIS2_FREE(environment->allocator, buffer); 
     
 
     
@@ -205,9 +205,6 @@
     ns2 =
         axis2_om_namespace_create (&environment, "urn:ISBN:0-395-74341-6",
                                    "isbn");
-    ns3 =
-        axis2_om_namespace_create (&environment, "urn:w3-org-ns:HTML", "NULL");
-
     ele1 = axis2_om_element_create (&environment, NULL, "book", ns1, &node1);
     AXIS2_OM_ELEMENT_DECLARE_NAMESPACE(ele1,&environment,node1,ns2);
     
@@ -252,6 +249,7 @@
      
      printf("%s",output_buffer);
      
+     AXIS2_FREE(environment->allocator, output_buffer); 
      printf ("\nDONE\n");
 
     return 0;



Mime
View raw message