Skip to content

Commit

Permalink
Merge pull request #9 from raimis/fix_leak
Browse files Browse the repository at this point in the history
Fix a memory leak in CudaANISymmetryFunctions
  • Loading branch information
peastman authored Oct 6, 2020
2 parents d78dc23 + 377214d commit 3c9409f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ani/CudaANISymmetryFunctions.cu
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ CudaANISymmetryFunctions::~CudaANISymmetryFunctions() {
cudaFree(positions);
if (neighbors != 0)
cudaFree(neighbors);
if (neighborCount != 0)
cudaFree(neighborCount);
if (periodicBoxVectors != 0)
cudaFree(periodicBoxVectors);
if (angularIndex != 0)
Expand Down

0 comments on commit 3c9409f

Please sign in to comment.