axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "nadir amra (JIRA)" <j...@apache.org>
Subject [jira] Closed: (AXIS2C-1471) in raw_xml_in_out_msg_recv.c there is log printout, which contains axiom_node_to_string(), but it is not freed
Date Wed, 02 Jun 2010 04:01:39 GMT

     [ https://issues.apache.org/jira/browse/AXIS2C-1471?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

nadir amra closed AXIS2C-1471.
------------------------------

    Fix Version/s: Current (Nightly)
       Resolution: Fixed

Fixed in revision http://svn.apache.org/viewvc?view=revision&revision=950359.

Also fixed files src/modules/mod_log/log_in_handler.c   and src/modules/mod_log/log_out_handler.c,
which had the same problem. 

> in raw_xml_in_out_msg_recv.c there is log printout, which contains axiom_node_to_string(),
but it is not freed
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2C-1471
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1471
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: core/receivers
>    Affects Versions: 1.7.0
>         Environment: linux
>            Reporter: Robert Springer
>            Priority: Minor
>             Fix For: Current (Nightly)
>
>
> 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);
>      }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org


Mime
View raw message