You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by bu...@apache.org on 2012/03/07 23:04:33 UTC

DO NOT REPLY [Bug 50486] Memoryleak - org.apache.log4j.helpers.ThreadLocalMap

https://issues.apache.org/bugzilla/show_bug.cgi?id=50486

--- Comment #15 from Maarten Bosteels <ma...@apache.org> 2012-03-07 22:04:33 UTC ---
Created attachment 28436
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=28436
clear the MDC when last key is removed + testcase

I agree that remove() should call clear when the last key was removed for the
reason described by marcel@frightanic.com 

I have attached a trivial fix and a small test-case with a simplified version
of the code that tomcat uses to check for memory leaks.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org