avoid illegal free()

This commit is contained in:
Axel Kohlmeyer
2020-07-08 16:29:40 -04:00
parent ed452c3624
commit 207232c1a3
2 changed files with 2 additions and 2 deletions

View File

@ -335,7 +335,7 @@ LAMMPS::LAMMPS(int narg, char **arg, MPI_Comm communicator) :
error->universe_all(FLERR,"Invalid command-line argument");
delete [] suffix;
delete [] suffix2;
suffix2 = NULL;
suffix = suffix2 = NULL;
suffix_enable = 1;
// hybrid option to set fall-back for suffix2
if (strcmp(arg[iarg+1],"hybrid") == 0) {