Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-1298

database::list_collections leaks cursor on error

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Works as Designed
    • None
    • None
    • Implementation
    • None
    • 0.5

    Description

      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.

      Attachments

        Activity

          People

            sam.rossi@mongodb.com Samuel Rossi (Inactive)
            sam.rossi@mongodb.com Samuel Rossi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: