database::list_collections leaks cursor on error

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Works as Designed
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Implementation
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      database::list_collections leaks the cursor received from libmongoc if an error is thrown. This should be remedied by immediately wrapping the cursor_t in a mongocxx::cursor before any checks for errors.

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

              Created:
              Updated:
              Resolved: