diff --git a/src/ML-IAP/mliap_unified.cpp b/src/ML-IAP/mliap_unified.cpp index b64c2b0db4..fef32a5293 100644 --- a/src/ML-IAP/mliap_unified.cpp +++ b/src/ML-IAP/mliap_unified.cpp @@ -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); }