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

database::create_collection leaks collection on error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Works as Designed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Implementation
    • Labels:
      None
    • Story Points:
      0.5

      Description

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

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: