|
Hi, I am testing log4cxx using purify and i am getting following Memory leak issues. Started delayedloop ( 2 errors, 94458 leaked bytes) Purify instrumented delayedloop (pid 23382 at Tue Apr 19 09:42:37 2005) Command-line: ./delayedloop xmlconfiguration/ConsoleAppender.xml FNH: Freeing non heap memory (2 times) New memory leaked: 94458 bytes (77%); potentially leaked: 0 bytes (0%) MLK: 93696 bytes leaked in 183 blocks This memory was allocated from: malloc [rtlib.o] c2n6Fi_Pv___1 [libCrun.so.1] void*operator new(unsigned) [rtlib.o] void*operator new[](unsigned) [rtlib.o] int std::strstreambuf::overflow(int) [libCstd.a] void __rwstd::digit_writer<char,std::ostreambuf_iterator<char,std::char_traits<char> > >::put_digits(char) [libCstd.a] Block of 512 bytes (183 times); last block at 0x15fbd8 MLK: 152 bytes leaked at 0x13c288 This memory was allocated from: malloc [rtlib.o] putenv [libc.so.1] log4cxx::helpers::TimeZone::TimeZone(const std::basic_string<char,std::char_traits<char>,std::allocator<char> >&) [timezone.cpp:47] __SLIP.INIT_B [liblog4cxx.so.9] void __STATIC_CONSTRUCTOR() [liblog4cxx.so.9] _init [liblog4cxx.so.9] MLK: 124 bytes leaked in 3 blocks This memory was allocated from: malloc [rtlib.o] xmlStrndup [xmlstring.c:45] xmlNodeListGetString [tree.c:1611] xmlGetProp [tree.c:6125] std::basic_string<char,std::char_traits<char>,std::allocator<char> >log4cxx::helpers::GnomeXMLDOMElement::getAttribute(const std::basic_string<char,std::char_traits<char>,std::allocator<char> >&) [gnomexml.cpp:179] void log4cxx::xml::DOMConfigurator::setParameter(log4cxx::helpers::ObjectPtrT<log4cxx::helpers::XMLDOMElement>,log4cxx::config::PropertySetter&) [domconfigurator.cpp:573] Block of 65 bytes at 0x151ef0 Block of 40 bytes at 0x131918 Block of 19 bytes at 0x138b40 MLK: 120 bytes leaked at 0x13bf28 This memory was allocated from: malloc [rtlib.o] c2n6Fi_Pv___1 [libCrun.so.1] void*operator new(unsigned) [rtlib.o] void log4cxx::xml::DOMConfigurator::configureAndWatch(const std::basic_string<char,std::char_traits<char>,std::allocator<char> >&,long) [domconfigurator.cpp:617] void DelayedLoop::init(const std::basic_string<char,std::char_traits<char>,std::allocator<char> >&) [delayedloop.o] void DelayedLoop::main(int,char**) [delayedloop.o] MLK: 64 bytes leaked at 0x131d48 This memory was allocated from: malloc [rtlib.o] c2n6Fi_Pv___1 [libCrun.so.1] void*operator new(unsigned) [rtlib.o] void*std::allocator<log4cxx::NDC::DiagnosticContext>::allocate(unsigned,void*) [memory:396] How can i solve this issues? Prakash F. Kadam ISSC, Pune University Walla! Mail - get your free 1G mail today |