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

Coverity analysis defect 123712: Resource leak

    • 1
    • StorEng - Defined Pipeline

      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:321: RESOURCE_LEAK 123712 Storage is returned from allocation function "malloc".
      /ext/storage_sources/dir_store/dir_store.c:321: RESOURCE_LEAK 123712 Assigning: "dirname" = storage returned from "malloc(buflen)".
      /ext/storage_sources/dir_store/dir_store.c:322: RESOURCE_LEAK 123712 Resource "dirname" is not freed or pointed-to in "snprintf".
      /ext/storage_sources/dir_store/dir_store.c:323: RESOURCE_LEAK 123712 Variable "dirname" going out of scope leaks the storage it points to.

            Assignee:
            backlog-server-storage-engines [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: