axis-c-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nadira...@apache.org
Subject svn commit: r950359 - in /axis/axis2/c/core/trunk/src: core/receivers/raw_xml_in_out_msg_recv.c modules/mod_log/log_in_handler.c modules/mod_log/log_out_handler.c
Date Wed, 02 Jun 2010 03:57:54 GMT
Author: nadiramra
Date: Wed Jun  2 03:57:54 2010
New Revision: 950359

URL: http://svn.apache.org/viewvc?rev=950359&view=rev
Log:
AXIS2C-1471 axiom_node_to_string() return value is not being free'ed.

Modified:
    axis/axis2/c/core/trunk/src/core/receivers/raw_xml_in_out_msg_recv.c
    axis/axis2/c/core/trunk/src/modules/mod_log/log_in_handler.c
    axis/axis2/c/core/trunk/src/modules/mod_log/log_out_handler.c

Modified: axis/axis2/c/core/trunk/src/core/receivers/raw_xml_in_out_msg_recv.c
URL: http://svn.apache.org/viewvc/axis/axis2/c/core/trunk/src/core/receivers/raw_xml_in_out_msg_recv.c?rev=950359&r1=950358&r2=950359&view=diff
==============================================================================
--- axis/axis2/c/core/trunk/src/core/receivers/raw_xml_in_out_msg_recv.c (original)
+++ axis/axis2/c/core/trunk/src/core/receivers/raw_xml_in_out_msg_recv.c Wed Jun  2 03:57:54
2010
@@ -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);
     }

Modified: axis/axis2/c/core/trunk/src/modules/mod_log/log_in_handler.c
URL: http://svn.apache.org/viewvc/axis/axis2/c/core/trunk/src/modules/mod_log/log_in_handler.c?rev=950359&r1=950358&r2=950359&view=diff
==============================================================================
--- axis/axis2/c/core/trunk/src/modules/mod_log/log_in_handler.c (original)
+++ axis/axis2/c/core/trunk/src/modules/mod_log/log_in_handler.c Wed Jun  2 03:57:54 2010
@@ -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);
             }
         }
     }

Modified: axis/axis2/c/core/trunk/src/modules/mod_log/log_out_handler.c
URL: http://svn.apache.org/viewvc/axis/axis2/c/core/trunk/src/modules/mod_log/log_out_handler.c?rev=950359&r1=950358&r2=950359&view=diff
==============================================================================
--- axis/axis2/c/core/trunk/src/modules/mod_log/log_out_handler.c (original)
+++ axis/axis2/c/core/trunk/src/modules/mod_log/log_out_handler.c Wed Jun  2 03:57:54 2010
@@ -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);
             }
         }
     }



Mime
View raw message