Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
None
-
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);
|