Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Ensure old buffers get properly cleared to avoid leaking memory

Signed-off-by: Joshua Peek <josh@joshpeek.com>
  • Loading branch information...
commit e7cb8c844ad9a5b3260c7e369b288d0792576765 1 parent 790ebf8
@duff duff authored josh committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  activesupport/lib/active_support/buffered_logger.rb
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.