Coverity analysis defect 11212: Resource leak

XMLWordPrintableJSON

    • Fully Compatible
    • ALL
    • Platform 8 08/28/15
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Leak of memory or pointers to system resources

      Defect 11212 (STATIC_C)
      Checker RESOURCE_LEAK (subcategory none)
      File: /src/third_party/v8/src/debug-agent.cc
      Function v8::internal::DebuggerAgentUtil::ReceiveMessage(const v8::internal::Socket *)
      /src/third_party/v8/src/debug-agent.cc, line: 312
      Assigning: "buffer" = storage returned from "v8::internal::NewArray(content_length + 1)".

            char* buffer = NewArray<char>(content_length + 1);
      

      /src/third_party/v8/src/debug-agent.cc, line: 316
      Variable "buffer" going out of scope leaks the storage it points to.

              return SmartArrayPointer<char>();
      

            Assignee:
            Andrew Morrow (Inactive)
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: