need to NULL suffix2 if it is deleted and not re-set.

This commit is contained in:
Axel Kohlmeyer
2015-10-07 18:45:03 -04:00
parent 5a7a0fc14c
commit 112d28fa49

View File

@ -204,6 +204,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_enable = 1;
// hybrid option to set fall-back for suffix2
if (strcmp(arg[iarg+1],"hybrid") == 0) {