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

Coverity analysis defect 11160: 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 11160 (STATIC_C)
      Checker CTOR_DTOR_LEAK (subcategory none)
      File: /src/third_party/v8/src/deoptimizer.cc
      Function v8::internal::Deoptimizer::Deoptimizer(v8::internal::Isolate *, v8::internal::JSFunction *, v8::internal::Deoptimizer::BailoutType, unsigned int, unsigned char *, int, v8::internal::Code *)
      /src/third_party/v8/src/deoptimizer.cc, line: 432
      Allocating memory by calling "new (size) v8::internal::FrameDescription(size, function)".

            input_ = new(size) FrameDescription(size, function);

      /src/third_party/v8/src/deoptimizer.cc, line: 432
      Assigning: "this->input_" = "new (size) v8::internal::FrameDescription(size, function)".

            input_ = new(size) FrameDescription(size, function);

      /src/third_party/v8/src/deoptimizer.cc, line: 432
      The constructor allocates field "input_" of "v8::internal::Deoptimizer" but the destructor and whatever functions it calls do not free it.

            input_ = new(size) FrameDescription(size, function);

      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: