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

fix inconsistent memory allocate/free

parent 42203bbc
Loading
Loading
Loading
Loading
+2 −2
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");