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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2.0-rc0
    • Component/s: Implementation
    • Labels:
      None
    • Story Points:
      1
    • Sprint:
      Perl/CXX 2017-04-14

      Description

      • 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.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: