diff --git a/unittest/force-styles/test_pair_style.cpp b/unittest/force-styles/test_pair_style.cpp index 593d411349..6a5da31abd 100644 --- a/unittest/force-styles/test_pair_style.cpp +++ b/unittest/force-styles/test_pair_style.cpp @@ -64,6 +64,7 @@ void cleanup_lammps(LAMMPS *lmp, const TestConfig &cfg) delete_file(cfg.basename + ".data"); delete_file(cfg.basename + "-coeffs.in"); delete lmp; + lmp = nullptr; } LAMMPS *init_lammps(int argc, char **argv, const TestConfig &cfg, const bool newton = true)