Ensure old buffers get properly cleared to avoid leaking memory
Signed-off-by: Joshua Peek <josh@joshpeek.com>
This commit is contained in:
parent
790ebf8eab
commit
e7cb8c844a
|
@ -116,7 +116,7 @@ module ActiveSupport
|
|||
end
|
||||
|
||||
def clear_buffer
|
||||
@buffer[Thread.current] = []
|
||||
@buffer.delete(Thread.current)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue