forked from lijiext/lammps
avoid multiple calls to delete [] on the same pointer.
thanks to @ExHP for pointing out this issue
This commit is contained in:
parent
58e01a9eee
commit
eadac15466
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue