summaryrefslogtreecommitdiffstats
path: root/axiom/src/om
diff options
context:
space:
mode:
authorGravatar nandika2010-04-29 05:57:28 +0000
committerGravatar nandika2010-04-29 05:57:28 +0000
commit309384f642e52da81cbaa5c61aa968e174fc654f (patch)
treefa2098d1d0d77dfe0e25b7a01fade58395c71d5a /axiom/src/om
parent4236357ca9d71ac0140b3ebe7f295232e69cbb0f (diff)
downloadaxis2c-309384f642e52da81cbaa5c61aa968e174fc654f.tar.gz
axis2c-309384f642e52da81cbaa5c61aa968e174fc654f.tar.bz2
code updated to fix crash issue
git-svn-id: http://svn.apache.org/repos/asf/axis/axis2/c/core/trunk@939203 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'axiom/src/om')
-rw-r--r--axiom/src/om/om_stax_builder.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/axiom/src/om/om_stax_builder.c b/axiom/src/om/om_stax_builder.c
index aca1878..052ce89 100644
--- a/axiom/src/om/om_stax_builder.c
+++ b/axiom/src/om/om_stax_builder.c
@@ -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);
+ }
}
/**