Skip to content

Commit

Permalink
Fix memory leak in CudaANISymmetryFunctions
Browse files Browse the repository at this point in the history
  • Loading branch information
Raimondas Galvelis committed Oct 6, 2020
1 parent d78dc23 commit 377214d
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 377214d

Please sign in to comment.