From 353bd64960b39ede863e093250aa128261a292a3 Mon Sep 17 00:00:00 2001 From: damitha Date: Fri, 23 Sep 2011 09:38:44 +0000 Subject: 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 --- guththila/src/guththila_xml_writer.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'guththila') 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); -- cgit v1.1-32-gdbae