MongoURI::connect can leak a DBClientInterface object on auth failure

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Critical - P2
    • 3.2.14, 3.4.5, 3.5.7
    • Affects Version/s: 3.2.12, 3.4.4, 3.5.6
    • Component/s: Internal Client
    • None
    • Fully Compatible
    • ALL
    • v3.4, v3.2
    • Platforms 2017-05-08
    • 0
    • None
    • 0
    • None
    • None
    • None
    • None
    • None
    • None

      If auth fails via an exception, the following code will leak a DBClientBase object:

      https://github.com/mongodb/mongo/blob/v3.4/src/mongo/client/mongo_uri_connect.cpp#L180-L188

            Assignee:
            Jonathan Reams
            Reporter:
            Andrew Morrow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: