avoid memory leaks

This commit is contained in:
Axel Kohlmeyer
2024-11-17 12:14:28 -05:00
parent a635f20b1b
commit 18329ac86a

View File

@ -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);
}