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 {