axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Samisa Abeysinghe <sam...@wso2.com>
Subject Re: Memory leak report for Axis2c 1.4
Date Thu, 31 Jul 2008 21:11:49 GMT
Hatim Daginawala wrote:
>
> Is it safe to uncomment AXIS2_FREE call to avoid memory leaks?
>

You can try :)

Samisa...

>  
>
> This leak still exists in 1.5 also.
>
>  
>
> ------------------------------------------------------------------------
>
> *From:* Milinda Pathirage [mailto:milinda.pathirage@gmail.com]
> *Sent:* Thursday, May 15, 2008 10:01 PM
> *To:* Apache AXIS C User List
> *Subject:* Re: Memory leak report for Axis2c 1.4
>
>  
>
> Hi all,
> I think this leak only exists in Windows. This is caused by following 
> code.
>
> #ifdef WIN32
>         attr_name_str = axutil_string_create(env, attr_name);
>         axiom_xml_reader_xml_free(om_builder->parser, env, attr_name);
> #else
>
> There are so many places in om_stax_builder.c where we have used above 
> kind of logic. Because we have comment out the reported code block:
>
> void AXIS2_CALL
> guththila_xml_reader_wrapper_xml_free(
>     axiom_xml_reader_t * parser,
>     const axutil_env_t * env,
>     void *data)
> {
>     /*if (data)
>        AXIS2_FREE(env->allocator, data); */
> }
>
> in guththila wrapper, it caused memory leaks in windows but not in Linux.
>
> Thanks
> Milinda.
>
> On Fri, May 16, 2008 at 4:04 AM, Samisa Abeysinghe <samisa@wso2.com 
> <mailto:samisa@wso2.com>> wrote:
>
> Steven Zhang wrote:
>
> Hi:
> I just finded memory leak in Axis2 1.4 GUTHTHILA:
> 1. guththila_xml_read_wrapper.c: 
> guththila_xml_reader_wrapper_xml_free(), line 581, call to 
> AXIS2_FREE() for string buffer was commented, cause tens K memory leak 
> for each request. Why this one is commented?
>
> 2. guththila_xml_writer.c: 
> guththila_write_empty_element_with_prefix_and_namespace(), line 1694. 
> When nmsp_found is FALSE, namesp pointer will be pushed into stack, 
> however when it's FALSE, namesp pointer will not be used and not be freed.
>
>  
>
> I thought we fixed all the leaks before the release. What is the code 
> you are using to test for leaks? Did you try with echo sample?
>
> Samisa...
>
>
> Am I correct?
>
> Thanks.
> Steven Zhang
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org 
> <mailto:axis-c-user-unsubscribe@ws.apache.org>
> For additional commands, e-mail: axis-c-user-help@ws.apache.org 
> <mailto:axis-c-user-help@ws.apache.org>
>
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG. Version: 8.0.100 / Virus Database: 269.23.16/1434 - 
> Release Date: 5/15/2008 7:24 AM
>  
>
>
>
> -- 
> Samisa Abeysinghe Director, Engineering; WSO2 Inc.
>
> http://www.wso2.com/ - "The Open Source SOA Company"
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org 
> <mailto:axis-c-user-unsubscribe@ws.apache.org>
> For additional commands, e-mail: axis-c-user-help@ws.apache.org 
> <mailto:axis-c-user-help@ws.apache.org>
>
>
>
>
> -- 
> http://inf-dimensions.blogspot.com "Infinite Dimensions"
> http://wsaxc.blogspot.com "Web Services With Axis2/C"
>
> ------------------------------------------------------------------------
> ---------------------------------------------------
> Confidentiality Notice: This electronic mail transmission is 
> confidential,
> may be privileged and should be read or retained only by the intended
> recipient. If you have received this transmission in error, please
> immediately notify the sender and delete it from your system.
> No virus found in this incoming message.
> Checked by AVG - http://www.avg.com 
> Version: 8.0.138 / Virus Database: 270.5.7/1581 - Release Date: 7/30/2008 6:56 AM
>   


-- 
Samisa Abeysinghe 
Director, Engineering; WSO2 Inc.

http://www.wso2.com/ - "The Open Source SOA Company"


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


Mime
View raw message