axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shan...@apache.org
Subject svn commit: r660399 - /webservices/axis2/trunk/c/axiom/src/om/om_stax_builder.c
Date Tue, 27 May 2008 06:02:02 GMT
Author: shankar
Date: Mon May 26 23:01:58 2008
New Revision: 660399

URL: http://svn.apache.org/viewvc?rev=660399&view=rev
Log:
fixing memory corruption

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=660399&r1=660398&r2=660399&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 Mon May 26 23:01:58 2008
@@ -474,12 +474,14 @@
                             AXIS2_FAILURE);
             return AXIS2_FAILURE;
         }
+
+        #ifdef AXIS2_LIBXML2_ENABLED
+            axiom_xml_reader_xml_free(om_builder->parser, env, temp_prefix);
+        #else
+            AXIS2_FREE(env->allocator,temp_prefix);
+        #endif
     }
-#ifdef AXIS2_LIBXML2_ENABLED
-    axiom_xml_reader_xml_free(om_builder->parser, env, temp_prefix);
-#else
-    AXIS2_FREE(env->allocator,temp_prefix);
-#endif
+
     return status;
 }
 



Mime
View raw message