Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-5360

Fix resource leaks in LibmongoCryptControllerBase::SendKmsRequest

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Unknown Unknown
    • 3.1.0
    • Affects Version/s: None
    • Component/s: None
    • Dotnet Drivers
    • Not Needed

      In both SendKmsRequest and SendKmsRequestAsync, `request.Message` returns a binary object which is disposable. However, we don't dispose of this object which results in a resource leak.

      Link to the issue in coverity: https://coverity.corp.mongodb.com/#/project-view/20339/10010?selectedIssue=162179

            Assignee:
            adelin.mbidaowona@mongodb.com Adelin Mbida Owona
            Reporter:
            adelin.mbidaowona@mongodb.com Adelin Mbida Owona
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: