Skip to content

Commit

Permalink
Change 'delete's in Relay VM Instruction dtor to 'delete[]'s (apache#…
Browse files Browse the repository at this point in the history
  • Loading branch information
akosik-anyvision authored and Trevor Morris committed Jun 9, 2020
1 parent ad1122a commit 50d79ff
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/runtime/vm/vm.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 50d79ff

Please sign in to comment.