From: akosik-anyvision <58490408+akosik-anyvision@users.noreply.github.com> Date: Fri, 5 Jun 2020 15:39:20 +0000 (-0400) Subject: Change 'delete's in Relay VM Instruction dtor to 'delete[]'s (#5735) X-Git-Tag: upstream/0.7.0~606 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fee5d547f608df205ce79d823726b616d8845cca;p=platform%2Fupstream%2Ftvm.git Change 'delete's in Relay VM Instruction dtor to 'delete[]'s (#5735) --- diff --git a/src/runtime/vm/vm.cc b/src/runtime/vm/vm.cc index 22102c9..42bca37 100644 --- a/src/runtime/vm/vm.cc +++ b/src/runtime/vm/vm.cc @@ -261,22 +261,22 @@ Instruction::~Instruction() { case Opcode::Fatal: return; case Opcode::AllocTensor: - delete this->alloc_tensor.shape; + delete[] this->alloc_tensor.shape; return; case Opcode::AllocADT: - delete this->datatype_fields; + delete[] this->datatype_fields; return; case Opcode::AllocClosure: - delete this->free_vars; + delete[] this->free_vars; return; case Opcode::InvokePacked: - delete this->packed_args; + delete[] this->packed_args; return; case Opcode::InvokeClosure: - delete this->closure_args; + delete[] this->closure_args; return; case Opcode::Invoke: - delete this->invoke_args_registers; + delete[] this->invoke_args_registers; return; default: std::ostringstream out;