reduce number of reported memory leaks with google test death tests

This commit is contained in:
Axel Kohlmeyer
2022-01-29 18:12:53 -05:00
parent c464c40d67
commit 9323a09b39

View File

@ -68,6 +68,7 @@ void WriteDump::command(int narg, char **arg)
#undef DUMP_CLASS
} else error->all(FLERR,utils::check_packages_for_style("dump",arg[1],lmp));
delete[] dumpargs;
if (modindex < narg) dump->modify_params(narg-modindex-1,&arg[modindex+1]);
@ -89,5 +90,4 @@ void WriteDump::command(int narg, char **arg)
// delete the Dump instance and local storage
delete dump;
delete [] dumpargs;
}