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

Leak in _mongoc_cyrus_set_mechanism

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.9.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      Reading the code, it appears that _mongoc_cyrus_set_mechanism constructs a string of supported auth mechanisms and then calls:

      bson_string_free (str, 0);
      

      That's passing 0 as the "free_segment" argument, so the character buffer is not freed.

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: