[prev in list] [next in list] [prev in thread] [next in thread] List: log4cxx-user Subject: =?UTF-8?Q?=4E=44=43=20=51=75=65=72=79?= From: prakash kadam <prakash_f_kadam () walla ! com> Date: 2006-02-09 12:51:33 Message-ID: 1139489493.104000-1113397-10768 () walla ! com [Download RAW message or body] [Attachment #2 (multipart/alternative)] [Attachment #4 (text/html)] <BODY oncontextmenu="return false" dir=ltr style="OVERFLOW-Y: scroll" leftMargin=0 \ topMargin=0 rightMargin=0><DIV id=wrteplaceholder style="FONT-FAMILY: Arial" \ name="wrteplaceholder"> <DIV>Hi all,<BR> I am using log4cxx version \ 0.9.7. I check log4cxx for memory leak with my application, it gives \ me memory leak at NDC::push. <BR><BR>I am calling it as<BR> const \ char * methodName = "getTagName";<BR> \ NDC::push(methodName);<BR><BR>and I get memory leak :<BR><BR>MLK: 64 bytes leaked at \ 0x8875f8<BR> * This memory was allocated \ from:<BR> malloc \ [rtlib.o]<BR> c2n6Fi_Pv___1 [libCrun.so.1]<BR> void*operator \ new(unsigned) [rtlib.o]<BR> void*std::allocator<log4cxx::NDC::DiagnosticContext>::allocate(unsigned,void*) \ [liblog4cxx.so.9]<BR> log4cxx::NDC::DiagnosticContext*std::allocator_interface< \ ;std::allocator<log4cxx::NDC::DiagnosticContext>,log4cxx::NDC::DiagnosticContext>::allocate(unsigned,log4cxx::NDC::DiagnosticContext*) \ [liblog4cxx.so.9]<BR> void \ std::deque<log4cxx::NDC::DiagnosticContext,std::allocator<log4cxx::NDC::DiagnosticContext> \ >::__allocate_at_end() [deque]<BR> void \ std::deque<log4cxx::NDC::DiagnosticContext,std::allocator<log4cxx::NDC::DiagnosticContext> \ >::push_back(const log4cxx::NDC::DiagnosticContext&) \ [liblog4cxx.so.9]<BR> void \ std::stack<log4cxx::NDC::DiagnosticContext,std::deque<log4cxx::NDC::DiagnosticContext,std::allocator<log4cxx::NDC::DiagnosticContext> \ > >::push(const log4cxx::NDC::DiagnosticContext&) \ [liblog4cxx.so.9]<BR> void log4cxx::NDC::push(const \ std::basic_string<char,std::char_traits<char>,std::allocator<char> \ >&) [ndc.cpp]<BR> EMS_NDC::EMS_NDC(const char*,log4cxx::Logger*) \ [emslog.h:22]<BR><BR><BR>How do i overcame with this?<BR><BR><BR> <HR> <DIV>Prakash F. Kadam<BR></DIV></DIV></DIV></BODY><hr><div \ style="background-color:white;color:black;">Walla! Mail - <a \ href="http://www.walla.com" style="color:blue">get your free 3G mail today</a></div>