Merge pull request #1286 from jrgissing/bond_react-memory_correction

Bond/react: memory correction
This commit is contained in:
Axel Kohlmeyer
2019-01-10 07:09:45 -05:00
committed by GitHub

View File

@ -445,10 +445,10 @@ FixBondReact::~FixBondReact()
delete [] exclude_group;
// check nfix in case all fixes have already been deleted
if (id_fix1 == NULL && modify->nfix) modify->delete_fix(id_fix1);
if (id_fix1 && modify->nfix) modify->delete_fix(id_fix1);
delete [] id_fix1;
if (id_fix3 == NULL && modify->nfix) modify->delete_fix(id_fix3);
if (id_fix3 && modify->nfix) modify->delete_fix(id_fix3);
delete [] id_fix3;
}