From f1c1ccd79c43158bc476acd71ea3cdda290eb1d3 Mon Sep 17 00:00:00 2001 From: Jiaming Yuan Date: Sat, 10 Apr 2021 20:15:14 +0800 Subject: [PATCH] Fix array delete. (#202) Close https://github.com/rapidsai/cuml/issues/3573 . Authors: - Jiaming Yuan (https://github.com/trivialfis) Approvers: - Corey J. Nolet (https://github.com/cjnolet) URL: https://github.com/rapidsai/raft/pull/202 --- cpp/include/raft/sparse/linalg/add.cuh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/include/raft/sparse/linalg/add.cuh b/cpp/include/raft/sparse/linalg/add.cuh index bf3e93a06f..47b1ba6e41 100644 --- a/cpp/include/raft/sparse/linalg/add.cuh +++ b/cpp/include/raft/sparse/linalg/add.cuh @@ -89,7 +89,7 @@ __global__ void csr_add_calc_row_counts_kernel( out_rowcounts[row] = final_size; raft::myAtomicAdd(out_rowcounts + m, final_size); - delete arr; + delete[] arr; } }