Description
org.apache.shiro.util.ThreadContext.getValue(Object) and org.apache.shiro.util.ThreadContext.remove(Object) initialze the TheadLocal unnecessarily via initialValue(). Both methods should return without creating the ThreadLocal to avoid potential memory leaks.
Attachments
Attachments
Issue Links
- relates to
-
SHIRO-159 ThreadLocal is not cleared upon the unloading of the webapp and the SHiro Servlet
- Closed