summaryrefslogtreecommitdiffstats
path: root/guththila
diff options
context:
space:
mode:
authorGravatar damitha2011-09-23 09:38:44 +0000
committerGravatar damitha2011-09-23 09:38:44 +0000
commit353bd64960b39ede863e093250aa128261a292a3 (patch)
tree2d37d203f547f1d0cd59f47bd1fc79bad79cd9a0 /guththila
parent7bf2ba12647b1669cf2984c70ddccf33092cae5c (diff)
downloadaxis2c-353bd64960b39ede863e093250aa128261a292a3.tar.gz
axis2c-353bd64960b39ede863e093250aa128261a292a3.tar.bz2
Please refer to
https://issues.apache.org/jira/browse/AXIS2C-1561 git-svn-id: http://svn.apache.org/repos/asf/axis/axis2/c/core/trunk@1174619 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'guththila')
-rw-r--r--guththila/src/guththila_xml_writer.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/guththila/src/guththila_xml_writer.c b/guththila/src/guththila_xml_writer.c
index adc2389..8e68f6a 100644
--- a/guththila/src/guththila_xml_writer.c
+++ b/guththila/src/guththila_xml_writer.c
@@ -1755,6 +1755,11 @@ guththila_write_empty_element_with_prefix_and_namespace(
guththila_stack_push(&wr->namesp, namesp, env);
elem->name_sp_stack_no = GUTHTHILA_STACK_TOP_INDEX(wr->namesp);
}
+ else
+ {
+ AXIS2_FREE(env->allocator, namesp);
+ namesp = NULL;
+ }
#ifndef GUTHTHILA_XML_WRITER_TOKEN
elem->name = strdup(local_name);