Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-9676

Coverity analysis defect 126347: Resource leak

    XMLWordPrintable

Details

    • 1
    • StorEng - Defined Pipeline

    Description

      Resource leak

      The system resource will not be reclaimed and reused, reducing the future availability of the resource. Leak of memory or pointers to system resources
      /ext/storage_sources/dir_store/dir_store.c:399: RESOURCE_LEAK 126347 Storage is returned from allocation function "malloc".
      /ext/storage_sources/dir_store/dir_store.c:399: RESOURCE_LEAK 126347 Assigning: "p" = storage returned from "malloc(len)".
      /ext/storage_sources/dir_store/dir_store.c:401: RESOURCE_LEAK 126347 Resource "p" is not freed or pointed-to in "snprintf".
      /ext/storage_sources/dir_store/dir_store.c:402: RESOURCE_LEAK 126347 Variable "p" going out of scope leaks the storage it points to.

      Attachments

        Issue Links

          Activity

            People

              luke.chen@mongodb.com Luke Chen
              xgen-internal-coverity Coverity Collector User
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: