Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-18689

Coverity analysis defect 11212: Resource leak

    XMLWordPrintableJSON

Details

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

    Description

      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>();

      Attachments

        Activity

          People

            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: