From f7e7abc908ff3e5b72e61475a203e842a7d5763d Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Sat, 23 Apr 2022 15:17:26 -0400 Subject: [PATCH] fix uninitialized pointer bug --- src/GRANULAR/fix_wall_gran_region.cpp | 1 - src/GRANULAR/fix_wall_gran_region.h | 1 - 2 files changed, 2 deletions(-) diff --git a/src/GRANULAR/fix_wall_gran_region.cpp b/src/GRANULAR/fix_wall_gran_region.cpp index dc2bfce142..6509c88a0b 100644 --- a/src/GRANULAR/fix_wall_gran_region.cpp +++ b/src/GRANULAR/fix_wall_gran_region.cpp @@ -70,7 +70,6 @@ FixWallGranRegion::FixWallGranRegion(LAMMPS *lmp, int narg, char **arg) : FixWallGranRegion::~FixWallGranRegion() { delete[] c2r; - delete[] region_style; memory->destroy(ncontact); memory->destroy(walls); diff --git a/src/GRANULAR/fix_wall_gran_region.h b/src/GRANULAR/fix_wall_gran_region.h index 804bd48221..18307e87e2 100644 --- a/src/GRANULAR/fix_wall_gran_region.h +++ b/src/GRANULAR/fix_wall_gran_region.h @@ -46,7 +46,6 @@ class FixWallGranRegion : public FixWallGran { private: class Region *region; - char *region_style; int nregion; // shear history for multiple contacts per particle