diff --git a/cpp/test/label/label.cu b/cpp/test/label/label.cu index 4c3479182f..c588e4133d 100644 --- a/cpp/test/label/label.cu +++ b/cpp/test/label/label.cu @@ -59,8 +59,8 @@ TEST_F(MakeMonotonicTest, Result) ASSERT_TRUE(devArrMatch(actual.data(), expected.data(), m, raft::Compare(), stream)); - delete data_h; - delete expected_h; + delete [] data_h; + delete [] expected_h; } TEST(labelTest, Classlabels)