ResponseStatusExtensions.SubDocPathException does not dispose of the IMemoryOwner
Description
When IOperation.ExtractBody is called it should always dispose of the returned IMemoryOwner, generally with a using statement. Failure to do so will cause the buffer to be garbage collected rather than returned to the ArrayPool. This, in turn, can lead to memory holes and decreased GC efficiency.
Environment
None
Gerrit Reviews
None
Release Notes Description
None
Activity
Show:
Fixed
Pinned fields
Click on the next to a field label to start pinning.
When IOperation.ExtractBody is called it should always dispose of the returned IMemoryOwner, generally with a using statement. Failure to do so will cause the buffer to be garbage collected rather than returned to the ArrayPool. This, in turn, can lead to memory holes and decreased GC efficiency.