Commit eadac154 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

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

thanks to @ExHP for pointing out this issue
parent 58e01a9e
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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");
    }