sparseUtil test: fix memory leak in the test code implemented by user/contributor

Signed-off-by: AbdelRauf <rauf@konduit.ai>
master
AbdelRauf 2021-02-23 21:17:56 +01:00
parent c523c4f0c7
commit c86300373e
1 changed files with 1 additions and 0 deletions

View File

@ -227,6 +227,7 @@ TEST_F(SparseUtilsTest, RavelIndices_Test) {
}
shape[2] = 30;
delete[] shapeInfoBuffer;
shapeInfoBuffer = shape::shapeBuffer(rank, sd::DataType::INT64, shape);
try {