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

Coverity analysis defect 133796: Remove excess duplicate call

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor - P4 Minor - P4
    • 1.25.0
    • None
    • None
    • None

    Description

      Double free

      Depending on the implementation of the deallocator function, the memory may by placed on the free list more than once. Memory is deallocated more than once
      /src/libmongoc/src/mongoc/mcd-azure.c:209: USE_AFTER_FREE 133796 Calling "_mongoc_http_response_cleanup" frees pointer "resp.body" which has already been freed.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: