Commit cce0755e authored by Stan Moore's avatar Stan Moore
Browse files

Fix memory free issue in fix_neigh_history_kokkos

parent 67ed11a9
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -32,8 +32,11 @@ FixNeighHistoryKokkos<DeviceType>::FixNeighHistoryKokkos(LAMMPS *lmp, int narg,
  execution_space = ExecutionSpaceFromDevice<DeviceType>::space;

  memory->destroy(npartner);
  memory->destroy(partner);
  memory->destroy(valuepartner);
  memory->sfree(partner);
  memory->sfree(valuepartner);
  npartner = NULL;
  partner = NULL;
  valuepartner = NULL;

  maxpartner = 8;
  grow_arrays(atom->nmax);