From 7470a120bb1ba629d288bf7825282f715cadbca4 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Tue, 7 Jan 2020 11:13:43 -0500 Subject: [PATCH] fix small memory leak in USER-INTEL binning style --- src/USER-INTEL/nbin_intel.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/USER-INTEL/nbin_intel.cpp b/src/USER-INTEL/nbin_intel.cpp index 8359587eb2..78c6246389 100644 --- a/src/USER-INTEL/nbin_intel.cpp +++ b/src/USER-INTEL/nbin_intel.cpp @@ -56,6 +56,8 @@ NBinIntel::~NBinIntel() { nocopy(binhead,bins,_atombin,_binpacked:alloc_if(0) free_if(1)) } #endif + memory->destroy(_atombin); + memory->destroy(_binpacked); } /* ----------------------------------------------------------------------