From eadac1546651b38af5f53e8135f72f8c6aba8522 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Wed, 28 Feb 2018 14:02:16 +0100 Subject: [PATCH] avoid multiple calls to delete [] on the same pointer. thanks to @ExHP for pointing out this issue --- src/library.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/library.cpp b/src/library.cpp index f0bd7f7ca6..233bb3122c 100644 --- a/src/library.cpp +++ b/src/library.cpp @@ -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"); }