delete redundant memory deallocation

This commit is contained in:
Axel Kohlmeyer 2022-09-24 14:48:13 -04:00
parent 1ad782c050
commit 1885f7e42d
No known key found for this signature in database
GPG Key ID: D9B44E93BF0C375A
1 changed files with 1 additions and 3 deletions

View File

@ -33,12 +33,10 @@ using namespace LAMMPS_NS;
/* ---------------------------------------------------------------------- */
MLIAPDummyDescriptor::MLIAPDummyDescriptor(LAMMPS *lmp) : MLIAPDescriptor(lmp) {}
MLIAPDummyDescriptor::MLIAPDummyDescriptor(LAMMPS *_lmp) : MLIAPDescriptor(_lmp) {}
MLIAPDummyDescriptor::~MLIAPDummyDescriptor()
{
memory->destroy(radelem);
memory->destroy(cutsq);
// manually decrement borrowed reference from Python
Py_DECREF(unified_interface);
}