You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-commits@axis.apache.org by na...@apache.org on 2010/04/29 07:57:29 UTC

svn commit: r939203 - /axis/axis2/c/core/trunk/axiom/src/om/om_stax_builder.c

Author: nandika
Date: Thu Apr 29 05:57:28 2010
New Revision: 939203

URL: http://svn.apache.org/viewvc?rev=939203&view=rev
Log:
code updated to fix crash issue

Modified:
    axis/axis2/c/core/trunk/axiom/src/om/om_stax_builder.c

Modified: axis/axis2/c/core/trunk/axiom/src/om/om_stax_builder.c
URL: http://svn.apache.org/viewvc/axis/axis2/c/core/trunk/axiom/src/om/om_stax_builder.c?rev=939203&r1=939202&r2=939203&view=diff
==============================================================================
--- axis/axis2/c/core/trunk/axiom/src/om/om_stax_builder.c (original)
+++ axis/axis2/c/core/trunk/axiom/src/om/om_stax_builder.c Thu Apr 29 05:57:28 2010
@@ -135,10 +135,13 @@ axiom_stax_builder_free_internal(
     axiom_stax_builder_t * om_builder,
     const axutil_env_t * env)
 {
-    axutil_hash_free(om_builder->declared_namespaces, env);
-    axiom_xml_reader_free(om_builder->parser, env);
-    axiom_document_free_self(om_builder->document, env);
-    AXIS2_FREE(env->allocator, om_builder);
+	if(om_builder)
+	{
+		axutil_hash_free(om_builder->declared_namespaces, env);
+		axiom_xml_reader_free(om_builder->parser, env);
+		axiom_document_free_self(om_builder->document, env);
+		AXIS2_FREE(env->allocator, om_builder);
+	}
 }
 
 /**