avoid false positives about memory leaks in force tester tools

This commit is contained in:
Axel Kohlmeyer
2020-06-18 11:45:26 -04:00
parent 547137f737
commit 41995b4665
3 changed files with 3 additions and 3 deletions

View File

@ -87,8 +87,8 @@ LAMMPS *init_lammps(int argc, char **argv, const TestConfig &cfg, const bool new
if (!info->has_style(prerequisite.first, style)) ++nfail;
}
delete info;
if (nfail > 0) {
delete info;
cleanup_lammps(lmp, cfg);
return nullptr;
}