axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Blough (Jira)" <j...@apache.org>
Subject [jira] [Updated] (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 Tue, 07 Apr 2020 16:38:00 GMT

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

Bill Blough updated AXIS2C-1471:
--------------------------------
    Fix Version/s:     (was: Current (Nightly))
                   1.7.0

> 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: 1.7.0
>
>
> 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 was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
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