Commit 10ec14f0 authored by Anders Hafreager's avatar Anders Hafreager Committed by Axel Kohlmeyer
Browse files

Remembering to clean up memory with new arrays in vashishta.

parent 82d9f5f5
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -76,6 +76,11 @@ PairVashishta::~PairVashishta()
  memory->destroy(params);
  memory->destroy(elem2param);

  memory->destroy(forceTable);
  memory->destroy(potentialTable);
  memory->destroy(neigh3BodyCount);
  memory->destroy(neigh3Body);

  if (allocated) {
    memory->destroy(setflag);
    memory->destroy(cutsq);