Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-4251

mongoc_client_new_from_uri may leak topology

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.21.0
    • Affects Version/s: None
    • Component/s: libmongoc
    • None

      In mongoc_client_new, the topology is freed before returning NULL. The same does not happen in mongoc_client_new_from_uri.

      This can be addressed alongside CDRIVER-3723, since that ticket will refactor both methods alongside introduction of a new mongoc_client_new_from_uri_with_error method.

            Assignee:
            jmikola@mongodb.com Jeremy Mikola
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: