avoid memory leak
This commit is contained in:
committed by
GitHub
parent
61371bba5e
commit
ccbe907def
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user