Coverity analysis defect 123712: Resource leak

XMLWordPrintableJSON

    • StorEng - Defined Pipeline
    • 1

      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:
              [DO NOT USE] Backlog - Storage Engines Team
              Reporter:
              Coverity Collector User
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: