forked from lijiext/lammps
plug memory leak
This commit is contained in:
parent
d11363c7eb
commit
411ecca8df
|
@ -85,6 +85,8 @@ FixWallGranRegion::FixWallGranRegion(LAMMPS *lmp, int narg, char **arg) :
|
||||||
FixWallGranRegion::~FixWallGranRegion()
|
FixWallGranRegion::~FixWallGranRegion()
|
||||||
{
|
{
|
||||||
delete [] c2r;
|
delete [] c2r;
|
||||||
|
delete [] region_style;
|
||||||
|
|
||||||
memory->destroy(ncontact);
|
memory->destroy(ncontact);
|
||||||
memory->destroy(walls);
|
memory->destroy(walls);
|
||||||
memory->destroy(shearmany);
|
memory->destroy(shearmany);
|
||||||
|
|
Loading…
Reference in New Issue