From c86300373e9118d54a4a43def98536b7b3600e25 Mon Sep 17 00:00:00 2001 From: AbdelRauf Date: Tue, 23 Feb 2021 21:17:56 +0100 Subject: [PATCH] sparseUtil test: fix memory leak in the test code implemented by user/contributor Signed-off-by: AbdelRauf --- libnd4j/tests_cpu/layers_tests/SparseUtilsTest.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libnd4j/tests_cpu/layers_tests/SparseUtilsTest.cpp b/libnd4j/tests_cpu/layers_tests/SparseUtilsTest.cpp index f83e61eb3..8afef3701 100644 --- a/libnd4j/tests_cpu/layers_tests/SparseUtilsTest.cpp +++ b/libnd4j/tests_cpu/layers_tests/SparseUtilsTest.cpp @@ -227,6 +227,7 @@ TEST_F(SparseUtilsTest, RavelIndices_Test) { } shape[2] = 30; + delete[] shapeInfoBuffer; shapeInfoBuffer = shape::shapeBuffer(rank, sd::DataType::INT64, shape); try {