Cleanup potential memory leaks
Some checks failed
Build and Push Image / build-and-push (push) Has been cancelled

This commit is contained in:
2025-07-23 15:45:19 -04:00
parent 1655e342b7
commit 3dca408356
2 changed files with 7 additions and 2 deletions

View File

@@ -79,6 +79,10 @@ public class AobaService(IMongoDatabase db)
{
return ex;
}
finally
{
data.Dispose();
}
}
public async Task<MaybeEx<GridFSDownloadStream, GridFSException>> GetFileStreamAsync(ObjectId mediaId, bool seekable = false, CancellationToken cancellationToken = default)