From 3847a3000cd2f03fec13a358ab5b7dd55273f116 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Sun, 12 Jul 2020 21:40:30 -0400 Subject: [PATCH] paranoia --- unittest/force-styles/test_pair_style.cpp | 1 + 1 file changed, 1 insertion(+) 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)