collection::find() and collection::distinct() leak a mongoc_cursor_t on some error paths

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 3.2.0-rc0
    • Affects Version/s: None
    • Component/s: Implementation
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      • If a user calls collection::find() with an invalid value for options::find::max_await_time(), a mongoc_cursor_t object will be leaked when a logic_error is thrown.
      • If a user calls collection::distinct() in circumstances such that mongoc_cursor_new_from_command() reply returns a cursor with an error set, the mongoc_cursor_t object will be leaked when an operation_exception is thrown.

              Assignee:
              Samuel Rossi (Inactive)
              Reporter:
              J Rassi (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: