Coverity analysis defect 126347: 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: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.

            Assignee:
            Luke Chen
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: