plug small memory leak

This commit is contained in:
Axel Kohlmeyer
2024-08-20 00:50:24 -04:00
parent 1809115c64
commit 8cfd856296

View File

@ -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];