diff options
author | nadiramra | 2010-06-02 03:57:54 +0000 |
---|---|---|
committer | nadiramra | 2010-06-02 03:57:54 +0000 |
commit | 914851ec152f8a6293a0e35ebf28505eabae1ef6 (patch) | |
tree | d90c4367924ce7f3187c46cff6bdc8803d8ca545 /src/core/receivers | |
parent | dd78e2b3734196578f85d1cc15ccf86a38dba1e5 (diff) | |
download | axis2c-914851ec152f8a6293a0e35ebf28505eabae1ef6.tar.gz axis2c-914851ec152f8a6293a0e35ebf28505eabae1ef6.tar.bz2 |
AXIS2C-1471 axiom_node_to_string() return value is not being free'ed.
git-svn-id: http://svn.apache.org/repos/asf/axis/axis2/c/core/trunk@950359 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/core/receivers')
-rw-r--r-- | src/core/receivers/raw_xml_in_out_msg_recv.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/core/receivers/raw_xml_in_out_msg_recv.c b/src/core/receivers/raw_xml_in_out_msg_recv.c index c213683..b007ff3 100644 --- a/src/core/receivers/raw_xml_in_out_msg_recv.c +++ b/src/core/receivers/raw_xml_in_out_msg_recv.c @@ -384,11 +384,17 @@ fault_value_str = if (fault_node) { axiom_node_t *fault_detail_node = NULL; + axis2_char_t *om_str = NULL; fault_detail = axiom_soap_fault_detail_create_with_parent(env, soap_fault); fault_detail_node = axiom_soap_fault_detail_get_base_node(fault_detail, env); - AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI, "fault_detail:%s", axiom_node_to_string( - fault_detail_node, env)); + + om_str = axiom_node_to_string(fault_detail_node, env); + if (om_str) + { + AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI, "fault_detail:%s", om_str); + AXIS2_FREE(env->allocator, om_str); + } axiom_soap_fault_detail_add_detail_entry(fault_detail, env, fault_node); } |