Coverity analysis defect 11159: Resource leak in object

XMLWordPrintableJSON

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

      Constructor allocates memory but destructor does not free it

      Defect 11159 (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: 52
      Assigning: "this->terminate_now_" = "v8::internal::OS::CreateSemaphore(0)".

                  terminate_now_(OS::CreateSemaphore(0)),
      

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

                  terminate_now_(OS::CreateSemaphore(0)),
      

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

              Created:
              Updated:
              Resolved: