Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-2932

Coverity analysis defect 101936: Resource leak

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Trivial - P5 Trivial - P5
    • 1.14.0
    • Affects Version/s: None
    • Component/s: libmongoc
    • None

      Leak of memory or pointers to system resources

      Defect 101936 (STATIC_C)
      Checker RESOURCE_LEAK (subcategory none)
      File: /src/libmongoc/tests/test-conveniences.c
      Function match_json
      /src/libmongoc/tests/test-conveniences.c, line: 642
      Resource "doc ? bson_as_canonical_extended_json(doc, NULL) : "{}"" is not freed or pointed-to in "fprintf".

                fprintf (stderr,
      

      /src/libmongoc/tests/test-conveniences.c, line: 642
      Failing to save or free storage allocated by "bson_as_canonical_extended_json(doc, NULL)" leaks it.

                fprintf (stderr,
      

            Assignee:
            kevin.albertson@mongodb.com Kevin Albertson
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: