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

scoped_bson_t::steal() doesn't clear _is_initialized flag

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 3.5.0
    • None
    • None

    Description

      This problem showed up during testing of another feature.  scoped_bson_t holds an internal flag to signal if it holds memory.  When steal() is called, the scoped_bson_t releases its owned memory to the caller; it should clear its ownership flag, too.

      Attachments

        Activity

          People

            samantha.ritter@mongodb.com Samantha Ritter (Inactive)
            samantha.ritter@mongodb.com Samantha Ritter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: