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

Coverity analysis defect 11161: 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 11161 (STATIC_C)
      Checker CTOR_DTOR_LEAK (subcategory none)
      File: /src/third_party/v8/src/isolate.cc
      Function v8::internal::PreallocatedMemoryThread::PreallocatedMemoryThread()
      /src/third_party/v8/src/isolate.cc, line: 206
      Assigning: "this->data_ready_semaphore_" = "v8::internal::OS::CreateSemaphore(0)".

                  data_ready_semaphore_(OS::CreateSemaphore(0)),

      /src/third_party/v8/src/isolate.cc, line: 206
      The constructor allocates field "data_ready_semaphore_" of "v8::internal::PreallocatedMemoryThread" but there is no destructor.

                  data_ready_semaphore_(OS::CreateSemaphore(0)),

      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: