Leak in _mongoc_cyrus_set_mechanism

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 1.9.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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:
              A. Jesse Jiryu Davis
              Reporter:
              A. Jesse Jiryu Davis
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: