delete redundant memory deallocation

This commit is contained in:
Axel Kohlmeyer
2022-09-24 14:48:13 -04:00
parent 1ad782c050
commit 1885f7e42d

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);
}