Skip to content

Commit

Permalink
plug memory leak in FixNHIntel class
Browse files Browse the repository at this point in the history
  • Loading branch information
akohlmey committed Apr 25, 2023
1 parent 39fa202 commit 59e8b93
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/INTEL/fix_nh_intel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ FixNHIntel::FixNHIntel(LAMMPS *lmp, int narg, char **arg) :

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

FixNHIntel::~FixNHIntel()
{
memory->destroy(_dtfm);
}

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

void FixNHIntel::setup(int vflag)
{
FixNH::setup(vflag);
Expand Down
1 change: 1 addition & 0 deletions src/INTEL/fix_nh_intel.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ namespace LAMMPS_NS {
class FixNHIntel : public FixNH {
public:
FixNHIntel(class LAMMPS *, int, char **);
~FixNHIntel() override;
void setup(int vflag) override;
void reset_dt() override;
double memory_usage() override;
Expand Down

0 comments on commit 59e8b93

Please sign in to comment.