diff --git a/src/USER-DIFFRACTION/compute_saed.cpp b/src/USER-DIFFRACTION/compute_saed.cpp index 3d09955275..dcafe57ba8 100644 --- a/src/USER-DIFFRACTION/compute_saed.cpp +++ b/src/USER-DIFFRACTION/compute_saed.cpp @@ -281,7 +281,7 @@ ComputeSAED::~ComputeSAED() { memory->destroy(vector); memory->destroy(store_tmp); - delete ztype; + delete[] ztype; } /* ---------------------------------------------------------------------- */ diff --git a/src/USER-DIFFRACTION/compute_xrd.cpp b/src/USER-DIFFRACTION/compute_xrd.cpp index 4d5cccdc50..d6b7549272 100644 --- a/src/USER-DIFFRACTION/compute_xrd.cpp +++ b/src/USER-DIFFRACTION/compute_xrd.cpp @@ -247,7 +247,7 @@ ComputeXRD::~ComputeXRD() { memory->destroy(array); memory->destroy(store_tmp); - delete ztype; + delete[] ztype; } /* ---------------------------------------------------------------------- */ diff --git a/src/USER-DIFFRACTION/fix_saed_vtk.cpp b/src/USER-DIFFRACTION/fix_saed_vtk.cpp index 882c13bc3e..4d9af66818 100644 --- a/src/USER-DIFFRACTION/fix_saed_vtk.cpp +++ b/src/USER-DIFFRACTION/fix_saed_vtk.cpp @@ -287,6 +287,8 @@ FixSAEDVTK::FixSAEDVTK(LAMMPS *lmp, int narg, char **arg) : FixSAEDVTK::~FixSAEDVTK() { delete [] extlist; + delete [] filename; + delete [] ids; memory->destroy(vector); memory->destroy(vector_total); if (fp && me == 0) fclose(fp);