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

Coverity analysis defect 11158: Resource leak in object

    XMLWordPrintableJSON

Details

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

    Description

      Constructor allocates memory but destructor does not free it

      Defect 11158 (STATIC_C)
      Checker CTOR_DTOR_LEAK (subcategory none)
      File: /src/third_party/v8/src/debug-agent.h
      Function v8::internal::DebuggerAgent::DebuggerAgent(const char *, int)
      /src/third_party/v8/src/debug-agent.h, line: 51
      Assigning: "this->session_access_" = "v8::internal::OS::CreateMutex()".

                  session_access_(OS::CreateMutex()), session_(NULL),

      /src/third_party/v8/src/debug-agent.h, line: 51
      The constructor allocates field "session_access_" of "v8::internal::DebuggerAgent" but the destructor and whatever functions it calls do not free it.

                  session_access_(OS::CreateMutex()), session_(NULL),

      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: