diff --git a/src/commons/Parameters.cpp b/src/commons/Parameters.cpp index afc56ba9..34e42981 100644 --- a/src/commons/Parameters.cpp +++ b/src/commons/Parameters.cpp @@ -1870,7 +1870,7 @@ void Parameters::parseParameters(int argc, const char *pargv[], const Command &c EXIT(EXIT_FAILURE); } filenames.emplace_back(posix); - delete posix; + delete[] posix; } #else filenames.emplace_back(pargv[argIdx]);