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

Coverity analysis defect 11163: 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 11163 (STATIC_C)
      Checker CTOR_DTOR_LEAK (subcategory none)
      File: /src/third_party/v8/src/log.cc
      Function v8::internal::Profiler::Profiler(v8::internal::Isolate *)
      /src/third_party/v8/src/log.cc, line: 275
      Assigning: "this->buffer_semaphore_" = "v8::internal::OS::CreateSemaphore(0)".

                buffer_semaphore_(OS::CreateSemaphore(0)),

      /src/third_party/v8/src/log.cc, line: 275
      The constructor allocates field "buffer_semaphore_" of "v8::internal::Profiler" but there is no destructor.

                buffer_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: