protect PairTable dtor with copymode

This commit is contained in:
Dan Ibanez 2017-01-05 14:06:54 -07:00
parent aebc8ea826
commit 267f05e5ca
1 changed files with 2 additions and 0 deletions

View File

@ -46,6 +46,8 @@ PairTable::PairTable(LAMMPS *lmp) : Pair(lmp)
PairTable::~PairTable()
{
if (copymode) return;
for (int m = 0; m < ntables; m++) free_table(&tables[m]);
memory->sfree(tables);