Uploaded image for project: 'Libmongocrypt'
  1. Libmongocrypt
  2. MONGOCRYPT-205

Fix potential leaks caught with BSON_MEMCHECK

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.0.0-rc2
    • Affects Version/s: None
    • Component/s: C library
    • Labels:
      None

      During the C driver implementation (CDRIVER-2875), some potential leaks were discovered when using libmongocrypt against libbson built with the BSON_MEMCHECK flag.

      This flag makes it so any usage of a bson_t heap allocates (whereas normally, heap allocation only occurs when the data exceeds the stack allocated size). So this caught a couple instances of where we would leak if the document being used was too large.

            Assignee:
            kevin.albertson@mongodb.com Kevin Albertson
            Reporter:
            kevin.albertson@mongodb.com Kevin Albertson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: