Quote:
The GC does not dispose your objects, as it has no knowledge of IDisposable.Dispose() or IAsyncDisposable.DisposeAsync().
You're not "disposing" the objects that need it (like MemoryStream).
https://docs.microsoft.com/en-us/dotnet/standard/garbage-collection/using-objects