Skip to content
Snippets Groups Projects
Commit cb276c5c authored by Maxence Naud's avatar Maxence Naud
Browse files

fix direct leak from forgotten call to 'delete'

parent 81293b42
No related branches found
No related tags found
4 merge requests!280Fix Scheduler::StaticSchedulingElement shared_ptr circular reference,!248Draft: [Add] MulPTQ and ScalingMeta MetaOperators,!229Version 0.3.1,!228fix direct leak from forgotten call to 'delete'
Pipeline #57375 passed
...@@ -78,6 +78,7 @@ TEST_CASE("[core/operator] ConstantOfShape_Op(forwardDims)", ...@@ -78,6 +78,7 @@ TEST_CASE("[core/operator] ConstantOfShape_Op(forwardDims)",
for (DimSize_t i = 0; i < op->getOutput(0)->nbDims(); ++i) { for (DimSize_t i = 0; i < op->getOutput(0)->nbDims(); ++i) {
CHECK(array_in[i] == op->getOutput(0)->dims().at(i)); CHECK(array_in[i] == op->getOutput(0)->dims().at(i));
} }
delete[] array_in;
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment