mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Ensure old buffers get properly cleared to avoid leaking memory
Signed-off-by: Joshua Peek <josh@joshpeek.com>
This commit is contained in:
@@ -116,7 +116,7 @@ module ActiveSupport
|
||||
end
|
||||
|
||||
def clear_buffer
|
||||
@buffer[Thread.current] = []
|
||||
@buffer.delete(Thread.current)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user