Always clear buffers returned to the memory pool
Just a safety measure in case anything evades our 'flattening'. I don't have any evidence that we're failing to clear something, but we want this here as a safeguard.
This commit is contained in:
parent
b04bb124b0
commit
96e5c7b22e
|
|
@ -120,7 +120,7 @@ namespace Microsoft.AspNetCore.Mvc.ViewFeatures.Internal
|
|||
|
||||
for (var i = 0; i < _leased.Count; i++)
|
||||
{
|
||||
_viewBufferPool.Return(_leased[i]);
|
||||
_viewBufferPool.Return(_leased[i], clearArray: true);
|
||||
}
|
||||
|
||||
_leased.Clear();
|
||||
|
|
|
|||
Loading…
Reference in New Issue