Permalink
Browse files

Ensure old buffers get properly cleared to avoid leaking memory

Signed-off-by: Joshua Peek <josh@joshpeek.com>
  • Loading branch information...
duff authored and josh committed Sep 18, 2008
1 parent 790ebf8 commit e7cb8c844ad9a5b3260c7e369b288d0792576765
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/lib/active_support/buffered_logger.rb
@@ -116,7 +116,7 @@ def buffer
end
def clear_buffer
- @buffer[Thread.current] = []
+ @buffer.delete(Thread.current)
end
end
end

0 comments on commit e7cb8c8

Please sign in to comment.