Commit a069d216 authored by sjplimp's avatar sjplimp Committed by GitHub
Browse files

Merge pull request #476 from akohlmey/dump_custom_bugfix

dump custom memory allocation bugfix
parents d7f54464 328ef873
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -82,8 +82,8 @@ DumpCustom::DumpCustom(LAMMPS *lmp, int narg, char **arg) :

  pack_choice = new FnPtrPack[nfield];
  vtype = new int[nfield];
  field2index = new int[nfield];
  argindex = new int[nfield];
  memory->create(field2index,nfield,"dump:field2index");
  memory->create(argindex,nfield,"dump:argindex");

  buffer_allow = 1;
  buffer_flag = 1;
@@ -200,8 +200,8 @@ DumpCustom::~DumpCustom()

  delete [] pack_choice;
  delete [] vtype;
  delete [] field2index;
  delete [] argindex;
  memory->destroy(field2index);
  memory->destroy(argindex);

  delete [] idregion;
  memory->destroy(thresh_array);