diff --git a/src/force.cpp b/src/force.cpp index eceed4297a..a5df8049e0 100644 --- a/src/force.cpp +++ b/src/force.cpp @@ -74,7 +74,7 @@ Force::Force(LAMMPS *lmp) : Pointers(lmp) kspace_style = new char[n]; strcpy(kspace_style,str); - // fill pair map with fixes listed in style_pair.h + // fill pair map with pair styles listed in style_pair.h pair_map = new std::map(); @@ -103,6 +103,8 @@ Force::~Force() if (dihedral) delete dihedral; if (improper) delete improper; if (kspace) delete kspace; + + delete pair_map; } /* ---------------------------------------------------------------------- */ diff --git a/src/input.cpp b/src/input.cpp index 67e72db959..0bf588abf5 100644 --- a/src/input.cpp +++ b/src/input.cpp @@ -130,6 +130,8 @@ Input::~Input() memory->sfree(arg); memory->sfree(infiles); delete variable; + + delete command_map; } /* ---------------------------------------------------------------------- diff --git a/src/modify.cpp b/src/modify.cpp index eb5815a7c9..9511a48636 100644 --- a/src/modify.cpp +++ b/src/modify.cpp @@ -136,6 +136,9 @@ Modify::~Modify() delete [] list_timeflag; restart_deallocate(); + + delete compute_map; + delete fix_map; } /* ----------------------------------------------------------------------