diff --git a/src/fix_spring_self.cpp b/src/fix_spring_self.cpp index c9a9f7d0f7..d0c7ed8f94 100644 --- a/src/fix_spring_self.cpp +++ b/src/fix_spring_self.cpp @@ -112,8 +112,10 @@ FixSpringSelf::~FixSpringSelf() atom->delete_callback(id,Atom::GROW); atom->delete_callback(id,Atom::RESTART); - // delete locally stored array + // delete locally stored arrays + delete[] kstr; + memory->destroy(kval); memory->destroy(xoriginal); }