mongoc_client_new_from_uri may leak topology

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor - P4
    • 1.21.0
    • Affects Version/s: None
    • Component/s: libmongoc
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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:
              Jeremy Mikola
              Reporter:
              Jeremy Mikola
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: