Skip to content

Commit

Permalink
Ensure old buffers get properly cleared to avoid leaking memory
Browse files Browse the repository at this point in the history
Signed-off-by: Joshua Peek <josh@joshpeek.com>
  • Loading branch information
duff authored and josh committed Sep 18, 2008
1 parent 790ebf8 commit e7cb8c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activesupport/lib/active_support/buffered_logger.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.