Unverified Commit dcc07421 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

fix inconsistent memory allocate/free

parent 42203bbc
Loading
Loading
Loading
Loading
+1 −1
Changes for src/USER-MISC/dihedral_nharmonic.cpp: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -261,7 +261,7 @@ void DihedralNHarmonic::allocate()
  allocated = 1;
  int n = atom->ndihedraltypes;

  memory->create(nterms,n+1,"dihedral:nt");
  nterms = new int[n+1];
  a = new double *[n+1];

  memory->create(setflag,n+1,"dihedral:setflag");