From 411ecca8df964e6d8c03cd1857a6e592bd5a57fb Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Fri, 14 Oct 2016 07:27:14 -0400 Subject: [PATCH] plug memory leak --- src/GRANULAR/fix_wall_gran_region.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/GRANULAR/fix_wall_gran_region.cpp b/src/GRANULAR/fix_wall_gran_region.cpp index b3b21660d8..2ba8e05f62 100644 --- a/src/GRANULAR/fix_wall_gran_region.cpp +++ b/src/GRANULAR/fix_wall_gran_region.cpp @@ -85,6 +85,8 @@ FixWallGranRegion::FixWallGranRegion(LAMMPS *lmp, int narg, char **arg) : FixWallGranRegion::~FixWallGranRegion() { delete [] c2r; + delete [] region_style; + memory->destroy(ncontact); memory->destroy(walls); memory->destroy(shearmany);