fix small memory leaks

This commit is contained in:
Axel Kohlmeyer
2020-10-01 18:11:19 -04:00
parent 48c45767f9
commit 2ea61b21f8
2 changed files with 4 additions and 1 deletions

View File

@ -53,8 +53,10 @@ ComputeViscosityCos::ComputeViscosityCos(LAMMPS *lmp, int narg, char **arg) :
/* ---------------------------------------------------------------------- */
ComputeViscosityCos::~ComputeViscosityCos() {
if (!copymode)
if (!copymode) {
delete[] vector;
delete[] extlist;
}
}
/* ---------------------------------------------------------------------- */