Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
1.7.0
-
None
-
linux
Description
in raw_xml_in_out_msg_recv.c there is log printout, which contains axiom_node_to_string(), but it is not freed.
Index: src/core/receivers/raw_xml_in_out_msg_recv.c
===================================================================
— src/core/receivers/raw_xml_in_out_msg_recv.c (revision 924674)
+++ src/core/receivers/raw_xml_in_out_msg_recv.c (working copy)
@@ -386,8 +386,9 @@
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));
+ axis2_char_t* log_str = axiom_node_to_string(fault_detail_node, env);
+ AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI, "fault_detail:%s", log_str);
+ AXIS2_FREE(env->allocator, log_str);
axiom_soap_fault_detail_add_detail_entry(fault_detail, env, fault_node);
}