From c815b5495ae17d9d0424561cc20b12b40a6958c1 Mon Sep 17 00:00:00 2001 From: NAUD Maxence <maxence.naud@cea.fr> Date: Sat, 19 Oct 2024 22:44:14 +0000 Subject: [PATCH] fix direct leak from forgotten call to 'delete' --- unit_tests/operator/Test_ConstantOfShape.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/unit_tests/operator/Test_ConstantOfShape.cpp b/unit_tests/operator/Test_ConstantOfShape.cpp index c10d97ce5..00013f86d 100644 --- a/unit_tests/operator/Test_ConstantOfShape.cpp +++ b/unit_tests/operator/Test_ConstantOfShape.cpp @@ -78,6 +78,7 @@ TEST_CASE("[core/operator] ConstantOfShape_Op(forwardDims)", for (DimSize_t i = 0; i < op->getOutput(0)->nbDims(); ++i) { CHECK(array_in[i] == op->getOutput(0)->dims().at(i)); } + delete[] array_in; } } } -- GitLab