fix mixed memory alloc bug in dump custom. this closes #475

This commit is contained in:
Axel Kohlmeyer 2017-05-10 22:41:41 -04:00
parent a6e2d5b5f7
commit 328ef873d8
1 changed files with 4 additions and 4 deletions

View File

@ -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);