Commit e13e4031 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

avoid memory leak in pppm/disp/omp

parent 782a3280
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -50,6 +50,13 @@ PPPMDispOMP::PPPMDispOMP(LAMMPS *lmp, int narg, char **arg) :
  suffix_flag |= Suffix::OMP;
}

/* ---------------------------------------------------------------------- */

PPPMDispOMP::~PPPMDispOMP()
{
  deallocate();
}

/* ----------------------------------------------------------------------
   allocate memory that depends on # of K-vectors and order
------------------------------------------------------------------------- */
+1 −1
Original line number Diff line number Diff line
@@ -28,7 +28,7 @@ namespace LAMMPS_NS {
  class PPPMDispOMP : public PPPMDisp, public ThrOMP {
 public:
  PPPMDispOMP(class LAMMPS *, int, char **);
  virtual ~PPPMDispOMP () {};
  virtual ~PPPMDispOMP ();
  virtual void compute(int, int);

 protected: