Do not define finalizers in types derived from MemoryManager<T> #33768
Labels
api-approved
API was approved in API review, it can be implemented
area-System.Buffers
code-analyzer
Marks an issue that suggests a Roslyn analyzer
Milestone
Adding a finalizer to a type derived
MemoryManager<T>
is likely an indication of a bug, as it suggests a native resource that could have been handed out in aSpan<T>
is getting cleaned up and potentially while it's still in use by theSpan<T>
.Category: Reliability
The text was updated successfully, but these errors were encountered: