From 8cfd856296eaaae50ee44a6a4152a29e6894864e Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Tue, 20 Aug 2024 00:50:24 -0400 Subject: [PATCH] plug small memory leak --- src/pair_hybrid_scaled.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pair_hybrid_scaled.cpp b/src/pair_hybrid_scaled.cpp index e897c784c7..2cacacfd8e 100644 --- a/src/pair_hybrid_scaled.cpp +++ b/src/pair_hybrid_scaled.cpp @@ -276,6 +276,7 @@ void PairHybridScaled::settings(int narg, char **arg) // allocate list of sub-styles as big as possibly needed if no extra args styles = new Pair *[narg]; + delete[] cutmax_style; cutmax_style = new double[narg]; memset(cutmax_style, 0.0, narg * sizeof(double)); keywords = new char *[narg];