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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> ------------------------------------------------------------------------ >> >> >> 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- http://inf-dimensions.blogspot.com "Infinite Dimensions" http://wsaxc.blogspot.com "Web Services With Axis2/C"