avoid multiple calls to delete [] on the same pointer.

thanks to @ExHP for pointing out this issue
This commit is contained in:
Axel Kohlmeyer 2018-02-28 14:02:16 +01:00
parent 58e01a9eee
commit eadac15466
1 changed files with 0 additions and 1 deletions

View File

@ -285,7 +285,6 @@ void lammps_commands_string(void *ptr, char *str)
BEGIN_CAPTURE
{
if (lmp->update->whichflag != 0) {
delete [] copy;
lmp->error->all(FLERR,"Library error: issuing LAMMPS command during run");
}