Skip to content

Commit f7f156d

Browse files
committed
fix a potential memory leak
1 parent 9f95733 commit f7f156d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

source/source_basis/module_pw/test_gpu/pw_basis_C2C.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ class PW_BASIS_K_GPU_TEST : public ::testing::Test
180180
}
181181
void TearDown() override
182182
{
183+
delete[] kvec_d; // mohan add 20250926
183184
delete[] h_rhog;
184185
delete[] h_rhogout;
185186
delete[] h_rhor;

0 commit comments

Comments
 (0)