Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-28996

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

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Critical - P2 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

      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@mongodb.com Jonathan Reams
            Reporter:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: