axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject svn commit: r600438 - /webservices/axis2/trunk/c/axiom/src/om/om_stax_builder.c
Date Mon, 03 Dec 2007 07:02:02 GMT
Author: pini
Date: Sun Dec  2 23:02:02 2007
New Revision: 600438

URL: http://svn.apache.org/viewvc?rev=600438&view=rev
Log:
Fixed segfault in windows

Modified:
    webservices/axis2/trunk/c/axiom/src/om/om_stax_builder.c

Modified: webservices/axis2/trunk/c/axiom/src/om/om_stax_builder.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/axiom/src/om/om_stax_builder.c?rev=600438&r1=600437&r2=600438&view=diff
==============================================================================
--- webservices/axis2/trunk/c/axiom/src/om/om_stax_builder.c (original)
+++ webservices/axis2/trunk/c/axiom/src/om/om_stax_builder.c Sun Dec  2 23:02:02 2007
@@ -162,8 +162,8 @@
 
 #ifdef WIN32
         attr_name_str = axutil_string_create(env, attr_name);
-       /* axiom_xml_reader_xml_free(om_builder->parser, env, attr_name);*/
-        AXIS2_FREE(env->allocator,attr_name);
+        axiom_xml_reader_xml_free(om_builder->parser, env, attr_name);
+        /*AXIS2_FREE(env->allocator,attr_name);*/
 #else
         attr_name_str = axutil_string_create_assume_ownership(env, &attr_name);
 #endif
@@ -174,8 +174,8 @@
 
 #ifdef WIN32
         attr_value_str = axutil_string_create(env, attr_value);
-/*        axiom_xml_reader_xml_free(om_builder->parser, env,*attr_value);*/
-        AXIS2_FREE(env->allocator,attr_value);
+        axiom_xml_reader_xml_free(om_builder->parser, env, attr_value);
+        /*AXIS2_FREE(env->allocator,attr_value);*/
 #else
         attr_value_str =
             axutil_string_create_assume_ownership(env, &attr_value);
@@ -252,8 +252,8 @@
 
 #ifdef WIN32
     temp_value_str = axutil_string_create(env, temp_value);
-/*      axiom_xml_reader_xml_free(om_builder->parser, env,temp_value);*/
-    AXIS2_FREE(env->allocator,temp_value);
+    axiom_xml_reader_xml_free(om_builder->parser, env,temp_value);
+    /*AXIS2_FREE(env->allocator,temp_value); */
     
 #else
     temp_value_str = axutil_string_create_assume_ownership(env, &temp_value);
@@ -432,11 +432,10 @@
         axutil_string_free(temp_ns_uri_str, env);
         axutil_string_free(temp_ns_prefix_str, env);
 #ifdef WIN32
-/*        axiom_xml_reader_xml_free(om_builder->parser, env, temp_ns_uri);
-          axiom_xml_reader_xml_free(om_builder->parser, env,
-        temp_ns_prefix);*/
-        AXIS2_FREE(env->allocator,temp_ns_uri);
-        AXIS2_FREE(env->allocator,temp_ns_prefix);
+        axiom_xml_reader_xml_free(om_builder->parser, env, temp_ns_uri);
+          axiom_xml_reader_xml_free(om_builder->parser, env, temp_ns_prefix);
+        /*AXIS2_FREE(env->allocator,temp_ns_uri);
+        AXIS2_FREE(env->allocator,temp_ns_prefix);*/
         
 #endif
         if (!om_ns)
@@ -502,9 +501,8 @@
 
 #ifdef WIN32
     temp_localname_str = axutil_string_create(env, temp_localname);
-/*    axiom_xml_reader_xml_free(om_builder->parser, env,
- *    temp_localname);*/
-    AXIS2_FREE(env->allocator,temp_localname);
+    axiom_xml_reader_xml_free(om_builder->parser, env, temp_localname);
+    /*AXIS2_FREE(env->allocator,temp_localname);*/
 #else
     temp_localname_str =
         axutil_string_create_assume_ownership(env, &temp_localname);
@@ -602,7 +600,7 @@
         /* do nothing */
 /*        axiom_xml_reader_xml_free(om_builder->parser, env,
  *        comment_value);*/
-                AXIS2_FREE(env->allocator,om_builder->lastnode);
+                AXIS2_FREE(env->allocator, comment_value);
 
         return NULL;
     }



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