diff options
-rw-r--r-- | src/core/receivers/raw_xml_in_out_msg_recv.c | 10 | ||||
-rw-r--r-- | src/modules/mod_log/log_in_handler.c | 3 | ||||
-rw-r--r-- | src/modules/mod_log/log_out_handler.c | 1 |
3 files changed, 11 insertions, 3 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); } diff --git a/src/modules/mod_log/log_in_handler.c b/src/modules/mod_log/log_in_handler.c index e7f7464..b7bbb60 100644 --- a/src/modules/mod_log/log_in_handler.c +++ b/src/modules/mod_log/log_in_handler.c @@ -71,7 +71,7 @@ axutil_log_in_handler_invoke( if(soap_envelope) { - /* ensure SOAP buider state is in sync */ + /* ensure SOAP builder state is in sync */ axiom_soap_envelope_get_body(soap_envelope, env); ret_node = axiom_soap_envelope_get_base_node(soap_envelope, env); @@ -82,6 +82,7 @@ axutil_log_in_handler_invoke( if(om_str) { AXIS2_LOG_INFO(env->log, "Input message: %s", om_str); + AXIS2_FREE(env->allocator, om_str); } } } diff --git a/src/modules/mod_log/log_out_handler.c b/src/modules/mod_log/log_out_handler.c index 14af2b6..a12e1f7 100644 --- a/src/modules/mod_log/log_out_handler.c +++ b/src/modules/mod_log/log_out_handler.c @@ -80,6 +80,7 @@ axutil_log_out_handler_invoke( if(om_str) { AXIS2_LOG_INFO(env->log, "Output message: %s", om_str); + AXIS2_FREE(env->allocator, om_str); } } } |