avoid memory leak

This commit is contained in:
Evangelos Voyiatzis
2023-10-20 14:24:45 +03:00
committed by GitHub
parent 61371bba5e
commit ccbe907def

View File

@ -308,6 +308,12 @@ RegCone::RegCone(LAMMPS *lmp, int narg, char **arg) : Region(lmp, narg, arg), lo
RegCone::~RegCone() RegCone::~RegCone()
{ {
delete[] c1str;
delete[] c2str;
delete[] rlostr;
delete[] rhistr;
delete[] lostr;
delete[] histr;
delete[] contact; delete[] contact;
} }