diff options
author | Duff OMelia <duff@omelia.org> | 2008-09-18 08:51:19 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2008-09-18 08:51:19 -0500 |
commit | e7cb8c844ad9a5b3260c7e369b288d0792576765 (patch) | |
tree | 008a44b030046a99c916f44d30ab9146181f1d17 /activesupport/lib | |
parent | 790ebf8eab39da1b4d62146fe10f4a77f5daca8c (diff) | |
download | rails-e7cb8c844ad9a5b3260c7e369b288d0792576765.tar.gz rails-e7cb8c844ad9a5b3260c7e369b288d0792576765.tar.bz2 rails-e7cb8c844ad9a5b3260c7e369b288d0792576765.zip |
Ensure old buffers get properly cleared to avoid leaking memory
Signed-off-by: Joshua Peek <josh@joshpeek.com>
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/buffered_logger.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/buffered_logger.rb b/activesupport/lib/active_support/buffered_logger.rb index 6553d72b4f..77e0b1d33f 100644 --- a/activesupport/lib/active_support/buffered_logger.rb +++ b/activesupport/lib/active_support/buffered_logger.rb @@ -116,7 +116,7 @@ module ActiveSupport end def clear_buffer - @buffer[Thread.current] = [] + @buffer.delete(Thread.current) end end end |