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

fix two memory allocation/deallocation bugs in pair style comb3

parent 151d1fb4
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -594,9 +594,9 @@ void PairComb3::read_file(char *file)
  int params_per_line = 74;
  char **words = new char*[params_per_line+1];

  if (params) delete [] params;
  memory->sfree(params);
  params = NULL;
  nparams = 0;
  nparams = maxparam = 0;

  // open file on proc 0